webGLOutput: Renger a WebGL Element

Description Usage Arguments Author(s) Examples

Description

Render a WebGL renderWebGL in an application page.

Usage

1
  webGLOutput(outputId, width = "100%", height = "400px")

Arguments

outputId

The ID of the glOutput associated with this element

width

The width of the WebGL scene. Must be a valid CSS unit (like "100%", "400px", or "auto") or a number, which will be treated as a number of pixels.

height

Plot height. See width for details.

Author(s)

Jeff Allen jeff@trestletech.com

Examples

1
2
3
4
## Not run: 
   webGLOutput("sctPlot")

## End(Not run)

Example output

Warning messages:
1: In rgl.init(initValue, onlyNULL) : RGL: unable to open X11 display
2: 'rgl_init' failed, running with rgl.useNULL = TRUE 
3: .onUnload failed in unloadNamespace() for 'rgl', details:
  call: fun(...)
  error: object 'rgl_quit' not found 
<div id="sctPlot" class="shiny-gl-output" style="width: 100% ; height: 400px"></div>

shinyRGL documentation built on May 2, 2019, 4:57 a.m.