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.

Bring the best of JavaScript data visualization to R

  • Use JavaScript visualization libraries at the R console, just like plots
  • Embed widgets in R Markdown documents and Shiny web applications
  • Develop new widgets using a framework that seamlessly bridges R and JavaScript

Widgets in action

Just a line or two of R code can be used to create interactive visualizations. See the featured widgets in the showcase and browse over 50 available widgets in the gallery.

See the showcase »


Interactive dashboards

You can easily compose multiple htmlwidgets into a dashboard using the flexdashboard package, which features flexible and easy to specify row and column-based layouts for multiple widgets.

Create a dashboard »


Widgets in harmony

Widgets can be wired together using the crosstalk package. Linked brushing between widgets and client side filtering are currently supported. Use Shiny to create more sophisticated interactions.

Learn about crosstalk »


Creating widgets

Learn how to create an R binding for your favorite JavaScript library and enable use of it in the R console, in R Markdown documents, and in Shiny web applications.

Develop a widget »

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