| anim_save | R Documentation |
This function is analogous to ggplot2::ggsave() in that it by default takes
the last created animation and saves it to the specific location. As
gganimate supports arbitrary renderers, and thus return types, the returned
object must implement a save_animation method to be able to be used with
anim_save(). This is provided natively for gif_image and magick-image
objects.
anim_save(filename, animation = last_animation(), path = NULL, ...)
filename |
File name to create on disk. |
animation |
The animation object to save, as returned by |
path |
Path of the directory to save plot to: |
... |
arguments passed on to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.