gganimate (version 0.1.0.9000)

print.gganimate: Print a gganimate object, allowing browsing in RStudio

Description

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).

Usage

# S3 method for gganimate
print(x, format = "gif", ...)

Arguments

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 gganimate_save (and then loads the contents of that file into memory) if it has not already been saved.