hook_rgl with format "png"),
fixed vector graphics (hook_rgl with format "eps", "pdf" or
"postscript"), or interactive WebGL graphics (hook_webgl).setupKnitr()
hook_rgl(before, options, envir)
hook_webgl(before, options, envir)NULL if called
when no output is available.setupKnitr() function needs to be called once
at the start of the document to install the hook_webgl.The following chunk options are supported:
rgl.keepopen: no longer used. Ignored
with a warning.rgl.newwindow(defaultFALSE): Whether to open a new window for the display.rgl.margin(default 100): number of pixels by which to indent the
WebGL window.dpi,fig.retina,fig.width,fig.height: standarddev: used byhook_rglto set
the output format. May be"eps","postscript","pdf"or"png"(default:"png").rgl.Sweave embeds fixed images in Sweave documents.