Creating an animated bar plot in R

Arda Korkmaz
1 min readDec 11, 2018

--

Let’s say we have a mobile application that has 10 different product (A,B,C,D,E,F,G,H,J,K) inside and we want to look at download numbers through 5 months (06-10) in a certain area X.

Bar plot is the simplest solution for 2 dimensional values. If you have values change over time, animated bar plot is event better! With animate function of gganimate package we can make this animation easily as following.

Enjoy!

gganimete package can be downloaded from thomasp85’s git repository:

If you would like to see the sliding version of this in action follow here.

Thank you!

--

--