Skip to content

animint/animint2

Repository files navigation

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…

lang gallery manual slides paper
en Gallery Animated interactive data visualization using animint2 in R Animated, interactive figures with animint2 in R Extending ggplot2 for Linked and Animated Web Graphics
fr La galerie Visualisation interactive de données dans R avec animint2 Rajouter l'interactivité à vos ggplots avec animint2 Video Abstract

codecov

A badge verifying if this package has passed all its tests.

About

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.

A screencast of an interactive data visualization displaying fertility data from the World Bank. The user types in the selection menu and clicks on the legend, which causes changes in the visualization. GIF.

Try interacting with

If you encounter problems, please see the animint2 wiki FAQ or write us an issue.

Installation

# 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")

Use

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.

Similar Packages

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.

Problems?

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.

Other galleries

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:

About

Animated interactive grammar of graphics

Resources

Contributing

Stars

Watchers

Forks

Contributors

Languages