7

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

David Arenburg
  • 91,361
  • 17
  • 137
  • 196
Dan
  • 6,008
  • 7
  • 40
  • 41
  • @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 Answers4

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
3

Also be sure to check out the animation package

hadley
  • 102,019
  • 32
  • 183
  • 245
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