Tufte style visualizations in R using Plotly

This post is inspired by Lukasz Piwek’s awesome Tufte in R post. We’ll try to replicate Tufte’s visualization practices in R using Plotly. You can read more about Edward Tufte here.

One easy way to replicate the graphs showcased on Lukasz’s blog would be to simply use ggplotly() on his ggplot2() code.

We’ll use plot_ly() instead.

Minimal Line Plot

Range-frame (or quartile-frame) scatterplot

Dot-dash (Rug) plot

Minimal Boxplot

This one needs a little bit of work. Since geom_tufteboxplot() is not yet supported, using ggplotly() won’t work either.

Minimal Barchart