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.

MetricsGraphics

http://hrbrmstr.github.io/metricsgraphics/

MetricsGraphics enables easy creation of D3 scatterplots, line charts, and histograms.

library(metricsgraphics)
mjs_plot(mtcars, x=wt, y=mpg) %>%
 mjs_point(color_accessor=carb, size_accessor=carb) %>%
 mjs_labs(x="Weight of Car", y="Miles per Gallon")

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