rgl with Sweavergl graphics into
a Sweave document. These functions support that
integration.Sweave.snapshot()
rgl.Sweave(name, width, height, options, ...)
rgl.Sweave.off()Sweave to rgl.Sweave
when it opens the device.rgl.Sweave function is not normally called by the user. The user
specifies it as the graphics driver when opening the code chunk, e.g. by
using<
When the rgl device is closed at the end of the code chunk,
rgl.Sweave.off() will be called automatically. It
will save a snapshot
of the last image (by default in Sweave.snapshot() function
can be called to save the image before the end of the chunk. Only one
snapshot will be taken per chunk.
Several chunk options are used by the rgl.Sweave device:
[object Object],[object Object],[object Object]
RweaveLatex for a description of alternate graphics drivers
in Sweave, and standard options that can be used in code chunks. hook_rgl
and hook_webgl allow fixed or interactive