gganimate extends the grammar of graphics as implemented by ggplot2 to include the description of animation. It does this by providing a range of new grammar classes that can be added to the plot object in order to customize how it should change with time. Here we take a simple boxplot of fuel consumption as a function of cylinders and let it transition between the number of gears available in the cars. As this is a discrete split (gear being best described as an ordered factor) we use transition_states and provide a relative length to use for transition and state view. As not all combinations of data are present there are states missing a box. We define that when a box appears it should fade into view, whereas it should shrink away when it disappears. Lastly, we decide to use a sinusoidal easing for all our aesthetics (here, only y is changing) gganimate is available on CRAN and can be installed with install.packages('gganimate').

Features

  • gganimate mimics the way ggplot2 renders its output
  • Under the hood, the animate() function is called which renders the frame and passes the frames to a renderer functions
  • gif is a fantastic format for animations due to its wide support
  • Further there’s support for rendering to sprite sheets if that is your vice
  • Video output are automatically embedded in RMarkdown documents
  • This is the second iteration of the gganimate package

Project Samples

Project Activity

See All Activity >

Follow gganimate

gganimate Web Site

Other Useful Business Software
Enterprise-grade ITSM, for every business Icon
Enterprise-grade ITSM, for every business

Give your IT, operations, and business teams the ability to deliver exceptional services—without the complexity.

Freshservice is an intuitive, AI-powered platform that helps IT, operations, and business teams deliver exceptional service without the usual complexity. Automate repetitive tasks, resolve issues faster, and provide seamless support across the organization. From managing incidents and assets to driving smarter decisions, Freshservice makes it easy to stay efficient and scale with confidence.
Try it Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of gganimate!

Additional Project Details

Programming Language

R

Related Categories

R Graphics Software, R Data Visualization Software

Registered

2022-07-13