Package 'shinyRGL'

Title: Shiny Wrappers for RGL
Description: Shiny wrappers for the RGL package. This package exposes RGL's ability to export WebGL visualization in a shiny-friendly format.
Authors: Trestle Technology, LLC.
Maintainer: Jeff Allen <[email protected]>
License: MIT + file LICENSE
Version: 0.1.1
Built: 2024-11-14 03:13:21 UTC
Source: https://github.com/trestletech/shinyrgl

Help Index


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.

Author(s)

Jeff Allen [email protected]

Examples

## Not run: 
   renderWebGL({
     points3d(1:10,1:10,1:10)
   })

## End(Not run)

Run the bivar example

Description

Run the bivar example form the shinyRGL package.

Usage

runBivarExample(port = 8100L,
    launch.browser = getOption("shiny.launch.browser", interactive()),
    workerId = "")

Arguments

port

The TCP port that the application should listen on. Defaults to port 8100.

launch.browser

If true, the system's default web browser will be launched automatically after the app is started. Defaults to true in interactive sessions only.

workerId:

Can generally be ignored. Exists to help some editions of Shiny Serv

Author(s)

Michael J. Kane [email protected]

Examples

## Not run: 
 runBivarExample()

## End(Not run)

Run the scatterplot example

Description

Run the scatterplot example form the shinyRGL package.

Usage

runScatterplotExample(port = 8100L,
    launch.browser = getOption("shiny.launch.browser", interactive()),
    workerId = "")

Arguments

port

The TCP port that the application should listen on. Defaults to port 8100.

launch.browser

If true, the system's default web browser will be launched automatically after the app is started. Defaults to true in interactive sessions only.

workerId:

Can generally be ignored. Exists to help some editions of Shiny Serv

Author(s)

Michael J. Kane [email protected]

Examples

## Not run: 
 runScatterplotExample()

## End(Not run)

Renger a WebGL Element

Description

Render a WebGL renderWebGL in an application page.

Usage

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 [email protected]

Examples

## Not run: 
   webGLOutput("sctPlot")

## End(Not run)