hook_rgl {rgl}R Documentation

Hook functions to use with knitr

Description

These functions allow rgl graphics to be embedded in knitr documents, either as bitmaps (hook_rgl with format "png"), fixed vector graphics (hook_rgl with format "eps", "pdf" or "postscript"), or interactive WebGL graphics (hook_webgl).

Usage

setupKnitr()
hook_rgl(before, options, envir)
hook_webgl(before, options, envir)

Arguments

before, options, envir

Standard knitr hook function arguments.

Details

The setupKnitr() function needs to be called once at the start of the document to install the knitr hooks and to initialize hook_webgl.

The following chunk options are supported:

Value

A string to be embedded into the output, or NULL if called when no output is available.

Author(s)

Originally by Yihui Xie in the knitr package; modified by Duncan Murdoch.

See Also

rgl.Sweave embeds fixed images in Sweave documents.


[Package rgl version 0.98.1 Index]