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).
# S3 method for gganimate
print(x, format = "gif", ...)
gganimate object
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 gganimate_save
(and then loads the contents of that file into memory) if it has
not already been saved.