August 22nd, 2015

Why interactive graphics?

  • "Any visualization of high dimensional data has to be compressed in some way, but interactivity allows us to get details" (Karl Broman, JSM 2015).
  • Famous InfoVis mantra: Overview first, zoom and filter, then details on demand (Schneiderman, 1996).

Why interactive graphics on the Web?

  • Portable (web browser)
  • Simple (share via URL)
  • Reach (everyone has internet, right?)

Figure converters

library(ggplot2)
p <- ggplot(data = iris) + 
  geom_point(aes(x = Sepal.Width, y = Sepal.Length, color = Species))
p

library(animint)
animint2dir(list(plot = p))

library(plotly)
ggplotly(p)