animint2 is a fork of ggplot2 with
- web-based output,
- and interactivity specified in R code,
- using common column names across data sets.
It supports
- multiple selection variables across multiple linked plots,
- each with multiple layers/geoms (each with its own data set),
- multiple interactive legends per plot,
- multiple panels/facets per plot,
- tooltips, animation, a guided tour, large data sets, and
- rendering from R code chunks in Rmd files, on GitHub Pages, or on any other web server (no special web server required)
Examples can be seen in…
Animint2 is an R package for generating and sharing animated interactive data visualizations, sometimes referred to as animints. It is a fork of, and uses similar syntax to, ggplot2. Animint2 is especially useful for large datasets, but smaller datasets can be made interactive, too. It is also capable of generating static data visualizations.
Try interacting with
- this interactive data visualization of data from the World Bank, or
- a more recent version which also includes a world map, or
- its French translation!
If you encounter problems, please see the animint2 wiki FAQ or write us an issue.
# Install the official package from CRAN.
# This is the option most people should choose:
install.packages("animint2")
# If you want to install the development version:
devtools::install_github("animint/animint2")animint2 is a fork of ggplot2, with a few additions for interactivity.
If you’re already familiar with ggplot2, then using animint2 will be easy.
If you’re not, no worries.
To get started, see the brief Animint2 Quick Start Guide or read the first few chapters of the Animint2 Manual.
animint2 isn’t the only R package that can create animated or interactive data visualizations.
animation and gganimate can animate changes between variables over time.
The loon package specializes in exploratory data analysis.
plotly can also create interactive graphics (but without the clickSelects and showSelected keywords).
For more comparisons, see the differences wiki page.
The animint2 package is a work in progress.
If you spot any bugs or unexpected behaviors, please let us know by reporting it as an issue on GitHub.
Thanks! Have a great day.
Toby Hocking maintains repositories on specific subjects:
- gallery-ml contains data visualizations related to machine learning algorithms.
- gallery-change-point contains data visualizations related to change-point detection algorithms.
- gallery-hic contains data visualizations related to Hi-C data analysis.
Several GSOC contributors have created galleries:
- Vatsal-Rajput created a small gallery with a different index.Rmd file.
- nhintruong created a gallery with several examples adapted from the animation package, like the wiki page.
- Nishita’s animint gallery
- Ashish Tiwari
- Nandani
