Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

webGLcontrols

Obsolete functions to write HTML/Javascript code to control a WebGL display


Description

These functions write out HTML code to control WebGL displays on the same page. They are deprecated; most documentation has now been removed.

Usage

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)

Arguments

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 NULL, numeric labels will be shown.

fullset

Objects in the subscene which are not in fullset will not be touched.

subscenes

The subscenes to be controlled.

prefixes

The prefixes of the WebGL scenes to be controlled.

accumulate

If TRUE, the subsets will accumulate (by union) as the value increases.

id

The id of the input control that will be generated.

name

The name of the input control that will be generated.

...

Arguments to pass to propertySlider.

a,b,c,d

The parameter values to change. Leave as NULL to hold the parameter constant.

plane, clipplaneids

The identifier of the particular clipplane to modify.

subset

The subset that the button should toggle.

label

The button label.

Value

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.

Author(s)

Duncan Murdoch

See Also

playwidget and toggleWidget for a newer, preferred method of inserting controls into a scene.


rgl

3D Visualization Using OpenGL

v0.106.8
GPL
Authors
Duncan Murdoch [aut, cre], Daniel Adler [aut], Oleg Nenadic [ctb], Simon Urbanek [ctb], Ming Chen [ctb], Albrecht Gebhardt [ctb], Ben Bolker [ctb], Gabor Csardi [ctb], Adam Strzelecki [ctb], Alexander Senger [ctb], The R Core Team [ctb, cph], Dirk Eddelbuettel [ctb], The authors of Shiny [cph], The authors of knitr [cph], Jeroen Ooms [ctb], Yohann Demont [ctb], Joshua Ulrich [ctb], Xavier Fernandez i Marin [ctb], George Helffrich [ctb], Ivan Krylov [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.