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

Description Usage Arguments

View source: R/gganimate.R

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

1
2
## S3 method for class '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.


YTLogos/gganimate documentation built on May 20, 2019, 1:48 p.m.