gif_file

0th

Percentile

Wrap a gif file for easy handling

This is a simple class for gif files that takes care printing the file correctly in different environment (e.g. knitr, RStudio, etc.). If your renderer produces a gif file you can wrap the final output in gif_file to get all of these benefits for free.

Keywords
internal
Usage
gif_file(file)

# S3 method for gif_image print(x, ...)

knit_print.gif_image(x, options, ...)

# S3 method for gif_image split(x, f, drop = FALSE, ...)

Arguments
file

The gif file to be wrapped

x

A gif_image object

...

Arguments passed on

f

a ‘factor’ in the sense that as.factor(f) defines the grouping, or a list of such factors in which case their interaction is used for the grouping.

drop

logical indicating if levels that do not occur should be dropped (if f is a factor or a list).

Value

gif_file returns a gif_image object. split returns a list of magick-image objects and requires magick to work.

Aliases
  • gif_file
  • gif_image
  • print.gif_image
  • knit_print.gif_image
  • split.gif_image
Documentation reproduced from package gganimate, version 1.0.3, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.