Creating animated plots in R
Readers were exposed to the idea of animation in R using the animation packages in the recipe Animating a 3D surface plot in chapter 6, Adding the Third Dimension, but animation in R would seem incomplete without the use of the googleVis
package. Animating a visualization brings a new dimension to our visualization. It helps to be a good storyteller, but when the story is accompanied by animation or a plot, it adds force to the story. Many of you would agree that the Web is filled with animated visualizations but there are some that have made a great impact. Here are links to some of the really good visualizations I have come across:
Gun violence at http://guns.periscopic.com/?year=2013
Nytimes at http://www.nytimes.com/interactive/2009/09/12/business/financial-markets-graphic.html?_r=0
Hans Rosling's talk and animated visualization at http://www.ted.com/talks/hans_rosling_shows_the_best_stats_you_ve_ever_seen
One visualization is shown as follows: