anim.save {anim.plots} | R Documentation |
This function simply calls replay on the object and then calls
saveGIF
and friends on the result.
anim.save(
obj,
filename,
type = switch(file_ext(filename), gif = "GIF", mp4 = "Video", swf = "SWF", html =
"HTML", tex = "Latex"),
...
)
obj |
an |
filename |
file to save to |
type |
one of 'GIF', 'Video', 'SWF', 'HTML', or 'Latex' |
... |
arguments passed to e.g. |
## 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)