Description Usage Arguments Value Author(s) See Also
These functions write out HTML code to control WebGL displays on the same page. They are deprecated; most documentation has now been removed.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | subsetSlider(subsets, labels = names(subsets),
fullset = Reduce(union, subsets),
subscenes = currentSubscene3d(), prefixes = "",
accumulate = FALSE, ...)
subsetSetter(subsets, subscenes = currentSubscene3d(), prefixes = "",
fullset = Reduce(union, subsets),
accumulate = FALSE)
clipplaneSlider(a=NULL, b=NULL, c=NULL, d=NULL,
plane = 1, clipplaneids, prefixes = "",
labels = signif(values[,1],3), ...)
toggleButton(subset, subscenes = currentSubscene3d(), prefixes = "",
label = deparse(substitute(subset)),
id = paste0(basename(tempfile("input"))), name = id)
|
subsets |
A list of vectors of object identifiers; the slider or setter will choose among them. |
labels |
Labels to display corresponding to each subset. If |
fullset |
Objects in the subscene which are not in |
subscenes |
The subscenes to be controlled. |
prefixes |
The prefixes of the WebGL scenes to be controlled. |
accumulate |
If |
id |
The |
name |
The name of the input control that will be generated. |
... |
Arguments to pass to |
a,b,c,d |
The parameter values to change. Leave as |
plane, clipplaneids |
The identifier of the particular clipplane to modify. |
subset |
The subset that the button should toggle. |
label |
The button label. |
subsetSetter
returns a length-one character vector
of class "propertySetter"
.
The other functions
use cat
to write their output and invisibly return the
id
of the control that was generated.
Duncan Murdoch
playwidget
and toggleWidget
for a newer, preferred method of inserting controls
into a scene.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.