The threejs package, as discussed at the beginning of the chapter, can be used to produce 3D scatterplots or plots on globe mappings (including Earth and celestial bodies). It can be installed using install.packages("threejs"). In order to produce the globe output that is shown in the screenshot, it is necessary to also install maps using install.packages("maps"). An example is shown here:
Globe
The visualization is completely interactive and can be spun with a mouse drag.