Mixing D3 and R

Contributed Talk | Day 2 | 10:25:00 | 40 Minute Duration | GG-B
  • Randall Pruim
    Calvin University Professor of Mathematics and Statistics

Did you attend? Rate this session

Mixing D3 and R

Contributed Talk | Day 2 | 10:25:00 | 40 Minute Duration | GG-B

R is a great tool for working with and visualizing data, but most of the data visualization tools in R are designed for static graphics, the kind you might print on paper.  D3 provides a toolkit for building stunning interactive visualizations, the kind you might see online at the New York Times or Washington Post.  How do we get the best of both worlds?

There are a number of options, from using html widgets (often via R packages that provide complete R-based wrappers that hide all of the javascript) to using r2d3 to create highly customized visualizations in D3 using data that has been preprocessed in R.  R2D3 also makes it easy to embed D3 visualizations in RMarkdown documents, reducing the time spent writing HTML and CSS. We’ll give a quick overview of some things like leaflet, plotly, and ggplotly that provide simple R-based solutions, and then show how to use r2d3 to create custom visualizations directly in D3.

New to D3? Consider attending the D3 workshop on Monday.