The threejs package provides interactive 3D scatterplots and globe plots using three.js and the htmlwidgets package for R. These examples render like normal R plots in RStudio. They also work in R Markdown documents, shiny, and from the R command line.