Creating animated plots in R This small example uses a set of Peruvian cities and its coordinates to plot them as points into the Peruvian Map Built With R maps mapdata Video Created with something like: ffmpeg -framerate 24 -i %d_%d.png output.mp4