I am following this tutorial over here on using the R library \'gganimate\' to create an animation of some times series data I simulated:
https://www.datanovia.com/en