hook_animation: Hooks to create animations in HTML output

Description Usage Arguments Details

View source: R/hooks-html.R

Description

hook_ffmpeg_html() uses FFmpeg to convert images to a video; hook_gifski() uses the gifski to convert images to a GIF animation; hook_scianimator() uses the JavaScript library SciAnimator to create animations; hook_r2swf() uses the R2SWF package.

Usage

1
2
3
4
5
6
7

Arguments

x

Filename for the plot (a character string).

options

A list of the current chunk options.

Details

These hooks are mainly for the package option animation.fun, e.g. you can set opts_knit$set(animation.fun = hook_scianimator).


yihui/knitr documentation built on Dec. 14, 2018, 6:22 p.m.