An R tutorial on how to create an animated bar chart
This is a tutorial about how to create an animated bar chart in R using Gganimate library.
In this chart I’ll show the top six most common names among Spanish newborn girls. The data can be downloaded from the Instituto Nacional de Estadística
In order to create animated charts, you must install:
-
Imagemagick. In this link you can find the steps to install the program.
-
Gifski library. This library converts a set of images in a gif.
After following all the steps described in the R script, we will have a beautiful animated bar chart!