In the paper we described the animint2dir(viz) function which compiles and renders and animint viz list. In the code chunks below we use structure(viz, class="animint") in order to render the animint inside of this Rmd document (animint2dir is used internally).

Each section below contains

Tips figure

data(tips, package = "reshape2")
bar <- ggplot(tips) + 
  geom_bar(aes(x = sex, clickSelects = sex))
scatter <- ggplot(tips) +
  geom_point(aes(x = total_bill, y = tip), alpha = 0.3) +
  geom_point(aes(x = total_bill, y = tip, showSelected = sex))
structure(list(bar = bar, scatter = scatter), class = "animint")