Learn R Programming

shinyRGL (version 0.1.0)

renderWebGL: Render a WebGL Element

Description

Render a WebGL Shiny output.

Usage

renderWebGL(expr, width = "auto", height = "auto", env = parent.frame(), quoted = FALSE)

Arguments

expr
The expression to be evaluated which should produce a rgl scene.
width
Either "auto", in which case the width will be calculated (reactively) based on the size of the glOutput element associated with this function, or a numeric value representing the width of the desired WebGL scene in pixels.
height
The height of the WebGL scene. See width for details.
env
The environment in which expr should be evaluated.
quoted
Is expr a quoted expression (with quote())? This is useful if you want to save an expression in a variable.

Examples

Run this code
## Not run: 
#    renderWebGL({
#      points3d(1:10,1:10,1:10)
#    })
# ## End(Not run)

Run the code above in your browser using DataLab