threejs

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.

Get Web Application Development with R Using Shiny - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.