Does anyone have any tips regarding making animated GIFs in R? I'm trying to make some time lapse map GIFs.
Asked
Active
Viewed 3.5k times
7
-
@David_Arenburg this was marked duplicate and linked to another question, but that question is closed for being "too broad"... – colin Jul 23 '19 at 13:00
4 Answers
7
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.

Community
- 1
- 1

Dirk Eddelbuettel
- 360,940
- 56
- 644
- 725
-
FYI, suggested ways to handle duplicate questions: http://meta.stackexchange.com/questions/10841/how-to-handle-duplicate-questions/10844#10844 – Argalatyr Sep 06 '09 at 15:17
-
1Thanks for the hint -- will try to remember that next time :) – Dirk Eddelbuettel Sep 06 '09 at 15:47
0
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
- 24,567
- 5
- 34
- 33
0
Here is sample code of using Imagemagick (called through R) for any sequence of png's you generate.

hatmatrix
- 42,883
- 45
- 137
- 231