anim.save {anim.plots} | R Documentation |
Save an anim.frames object in various formats.
Description
This function simply calls replay on the object and then calls
saveGIF
and friends on the result.
Usage
anim.save(
obj,
filename,
type = switch(file_ext(filename), gif = "GIF", mp4 = "Video", swf = "SWF", html =
"HTML", tex = "Latex"),
...
)
Arguments
obj |
an |
filename |
file to save to |
type |
one of 'GIF', 'Video', 'SWF', 'HTML', or 'Latex' |
... |
arguments passed to e.g. |
Examples
## Not run:
tmp <- anim.plot(1:10, 1:10, pch=1:10, show=FALSE)
anim.save(tmp, "mygif.gif")
anim.save(replay(tmp, after=legend("topleft", legend="My legend")),
"mygif2.gif")
## End(Not run)
[Package anim.plots version 0.2.2 Index]