Print a gganimate object as browsable HTML, which allows visualization
directly in RStudio. If we are in knitr, directly print each of the
images instead (you should use the fig.show = "animate"
option
in the chunk).
1 2 |
x |
gganimate object |
format |
What format to display in, such as "gif" (default), "mp4", or "avi". |
... |
Extra arguments for the <img> or <video> tag, such as width or height This saves the plot to a file using |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.