Share the Gallery !Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInEmail this to someone

An interactive chart is a chart on which you can hover a point, zoom, play with axis, add a button and so on. It has several advantages. It carries more information using the hovering facility. It allows the reader to go deeper in its

understanding of the data, since he can play with it and try to answer its own question. In R, interactive charts are quite easy to do thanks to several libraries. If you use ggplot2, the ggplotly facility of the plotly library will instantly

turn your static version interactive. For specific type of charts, the HTML widgets are a powerful set of libraries that allow to make almost any type of graphic.




Ggplotly is a function from the plotly library that allows to turn any ggplot2 chart interactive. If you know how to make a ggplot2 chart, you will make it interactive in the next 3 minutes, read the related blog post!


Interactive Maps can be done trough the leaflet library. The Map section proposes several examples, here are a few of them

Plotly | General tips

Plotly | Scatterplot

Plotly | Boxplot

Plotly | Histogram

Plotly | Area Chart


Plotly | Heatmap

Interactive Network with network D3


Interactive Streamgraph are easily done with R using the streamgraph library. A complete section of the R graph gallery is dedicated to it.


Once you understood how to make a treemap using the treemap library, it is straightforward to make it interactive using the d3treeR library.