renderWebGL: Render a WebGL Element

Description Usage Arguments Author(s) Examples

Description

Render a WebGL Shiny output.

Usage

1
2
  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.

Author(s)

Jeff Allen jeff@trestletech.com

Examples

1
2
3
4
5
6
## Not run: 
   renderWebGL({
     points3d(1:10,1:10,1:10)
   })

## End(Not run)

trestletech/shinyRGL documentation built on May 31, 2019, 7:50 p.m.