rglwidget (version 0.1.1402)

rglcontroller: Provide a link to a Shiny control.

Description

This function produces an object which can be used in the output of a Shiny app or in animations, to control an rglwidget.

Usage

rglcontroller(sceneId, ..., elementId = NULL, respondTo = NULL)

Arguments

sceneId
The name of the rglwidget to control.
elementId
The HTML id to use for the control.
respondTo
The Id of an input control (e.g. a sliderInput control) to respond to.
...
A number of setter functions, e.g. subsetSetter.

Value

  • An object of class htmlwidget that will invisibly control an rglwidget object.

Details

See the sample application in system.file("shinyDemo", package = "rglwidget") for an example.

See Also

rglwidget, subsetSetter.

Examples

Run this code
# Similar code to this code appears in the Shiny demo app.

renderRglcontroller(rglcontroller("thewidget",
                    subsetSetter(0,
                                 subsets = unname(as.list(0:3)),
                                 accumulate = TRUE)))

Run the code above in your browser using DataCamp Workspace