powered by
This function simply calls replay on the object and then calls saveGIF and friends on the result.
saveGIF
anim.save( obj, filename, type = switch(file_ext(filename), gif = "GIF", mp4 = "Video", swf = "SWF", html = "HTML", tex = "Latex"), ... )
an anim.frames object, or an expression to evaluate
anim.frames
file to save to
one of 'GIF', 'Video', 'SWF', 'HTML', or 'Latex'
arguments passed to e.g. saveGIF
if (FALSE) { 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") }
Run the code above in your browser using DataLab