I'm trying to create a GIF that loops with the animation
package in R. But for some reason, even if I set the option loop=TRUE
, the images I make only play once and then stop. I would like the GIF to keep playing indefinitely. Any tips?
install.packages("animation")
library(animation)
saveGIF({
for (i in 1:10) plot(runif(10), ylim = 0:1)
},loop=TRUE,interval=0.2)