loopings GIFs with animation package in R -
i'm trying create gif loops animation
package in r. reason, if set option loop=true
, images make play once , stop. gif keep playing indefinitely. tips?
install.packages("animation") library(animation) savegif({ (i in 1:10) plot(runif(10), ylim = 0:1) },loop=true,interval=0.2)
the following works me. loop=true
default setting. sure problem not in gif viewer?
library(animation) ani.options( convert = shquote('c:/program files (x86)/imagemagick-6.8.1-q16/convert.exe') ) savegif( { (i in 1:10) plot(runif(10), ylim = 0:1) }, movie.name = "test.gif", interval = 0.2, ani.width = 300, ani.height = 300, outdir = getwd() )
p.s. i'm guessing code works without addition of pointer convert.exe
program since able produce .gif.
Comments
Post a Comment