Debian Codegraph @

man/hook_animation.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/hooks-html.R
3 \name{hook_ffmpeg_html}
4 \alias{hook_ffmpeg_html}
5 \alias{hook_gifski}
6 \alias{hook_scianimator}
7 \alias{hook_r2swf}
8 \title{Hooks to create animations in HTML output}
9 \usage{
10 hook_ffmpeg_html(x, options)
11
12 hook_gifski(x, options)
13
14 hook_scianimator(x, options)
15
16 hook_r2swf(x, options)
17 }
18 \arguments{
19 \item{x}{Filename for the plot (a character string).}
20
21 \item{options}{A list of the current chunk options.}
22 }
23 \description{
24 \code{hook_ffmpeg_html()} uses FFmpeg to convert images to a video;
25 \code{hook_gifski()} uses the \pkg{gifski} to convert images to a GIF
26 animation; \code{hook_scianimator()} uses the JavaScript library SciAnimator
27 to create animations; \code{hook_r2swf()} uses the \pkg{R2SWF} package.
28 }
29 \details{
30 These hooks are mainly for the package option \code{animation.fun}, e.g. you
31 can set \code{opts_knit$set(animation.fun = hook_scianimator)}.
32 }