Description Usage Arguments Value Author(s) Examples
View source: R/rglcontroller.R
This is a function to produce actions in a web display. A
playwidget
or Shiny
input control (e.g. a sliderInput
control)
sets a value which controls attributes of one or more clipping
planes.
1 |
a, b, c, d |
Parameter values for the clipping planes. |
plane |
Which plane in the clipplane object? |
clipplaneids |
The id of the clipplane object. |
... |
Other parameters passed to |
A list of class "rglControl"
of cleaned up parameter
values, to be used in an rgl widget.
Duncan Murdoch
1 2 3 4 5 6 7 8 9 10 11 12 | open3d()
saveopts <- options(rgl.useNULL = TRUE)
xyz <- matrix(rnorm(300), ncol = 3)
id <- plot3d(xyz, type="s", col = "blue", zlim = c(-3,3))["clipplanes"]
dvals <- c(3, -3)
widget <- rglwidget() %>%
playwidget(clipplaneControl(d = dvals, clipplaneids = id),
start = 0, stop = 1, step = 0.01,
rate = 0.5)
if (interactive())
widget
options(saveopts)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.