tags:

views:

322

answers:

4

Duplicate

Creating a Movie from a Series of Plots in R

Does anyone have any tips regarding making animated GIFs in R? I'm trying to make some time lapse map GIFs.

A: 

I'd recommend just generating a series of png files (which happens by default each time you run plot with the png device open). You can then combine them into an animated gif with another program such as ImageMagick.

Jonathan Chang
+2  A: 

Also be sure to check out the animation package

hadley
+3  A: 

Repeat Question : Please see this previous StackOverflow question on creating a series of plots in R which offers a number of solutions including pointers to other useful packages such as the animation package.

Dirk Eddelbuettel
FYI, suggested ways to handle duplicate questions: http://meta.stackoverflow.com/questions/10841/how-to-handle-duplicate-questions/10844#10844
Argalatyr
Thanks for the hint -- will try to remember that next time :)
Dirk Eddelbuettel
A: 

Here is sample code of using Imagemagick (called through R) for any sequence of png's you generate.

Stephen