Welcome to the documentation and examples web site for the animint package, which allows an interactive animation to be defined as a list of ggplots with clickSelects and showSelected aesthetics. To get started, install the animint package by executing the following R code:
install.packages("devtools")
library(devtools)
install_github("animint", "tdhock")
library(animint)
The only kind of interactivity that can be defined using animint is showing and hiding subsets of data, based on the current selection. This is controlled by specifying the following two new aesthetics in your ggplot2 geoms:
If showSelected is not specified then all the data will be shown. Also, aes(showSelected=variable1, showSelected2=variable2) means show only the subset of the data that corresponds to both selected variables, like facet_grid(variable1 ~ variable2).
By default, animint will not make a plot animated. To enable animation, you can define the following option lists:
Click the images in the table below to show the R code that generated them, alongside the interactive plot.
Generated from R and HTML sources using animint version 2013.11.22.