HTML widgets work just like R plots except they produce interactive web visualizations. A line or two of R code is all it takes to produce a D3 graphic or Leaflet map. HTML widgets can be used at the R console as well as embedded in R Markdown reports and Shiny web applications. In addition to the widgets featured below you may also want to check out the htmlwidgets gallery.

threejs

https://github.com/bwlewis/rthreejs

threejs includes a 3D scatterplot and 3D globe (you can directly manipulate the scatterplot below with the mouse).

library(threejs)
z <- seq(-10, 10, 0.01)
x <- cos(z)
y <- sin(z)
scatterplot3js(x,y,z, color=rainbow(length(z)))

AltStyle によって変換されたページ (->オリジナル) /