Usage
saveMovie(expr, interval = 1, moviename = "movie", movietype = "gif",
loop = 0, dev = png, filename = "Rplot", fmt = "%03d",
outdir = tempdir(), convert = "convert",
ani.first = NULL, para = par(no.readonly = TRUE), ...)Arguments
expr
an expression to generate animations; use either the animation functions (e.g. brownian.motion()) in this package or a custom expression (e.g. for(i in 1:10) plot(runif(10), ylim = 0:1)).
interval
duration between animation frames (unit in seconds)
moviename
file name of the movie (base only, without extension)
movietype
format of the movie ('gif', 'mpg', ...; as long as it's supported by ImageMagick)
loop
iterations of the movie; set iterations to zero to repeat the animation an infinite number of times, otherwise the animation repeats itself up to loop times (N.B. for GIF only!)
dev
a function for a graphical device such as png, jpeg and bmp, etc. filename
file name of the sequence of images (`pure' name; without any format or extension)
fmt
a C-style string formatting command, such as %3d
outdir
the directory for the movie frames and the movie itself
convert
the ImageMagick command to convert images (default to be convert, but might be imconvert under some Windows platforms)
ani.first
an expression to be evaluated before plotting (this will be useful to set graphical parameters in advance, e.g. ani.first = par(pch = 20)
para
a list: the graphics parameters to be set before plotting; passed to par; note ani.first can override this argument ...
other arguments passed to the graphical device, such as height and width, ...