Description Arguments Value Usage See Also Examples
View source: R/control_slider_Y_pair.R
The control_slider_Y_pair
widget displays two vertical sliders to drag and
select new numeric values of two simulation variable.
inject |
A vector of the two strings for each variable name to be
modified/injected by the two sliders. For example, |
minimum |
A vector of the two minimum values for each variable in |
maximum |
A vector of the two maximum values for each variable in |
label |
A vector of the two small caption/labels for each slider. |
size |
A number used to designate the size (magnification) of the
widget. The default is set to |
placeOnGrid |
A row by column coordinate (e.g., |
Nothing.
1 2 | control_slider_Y_pair(inject = c("", ""), minimum = c(0, 0),
maximum = c(100, 100), label = "", size = 1, placeOnGrid = c(1, 1))
|
Other injectors:
control_slider_Y()
,
control_slider_pair()
,
control_slider()
,
control_switch_pair()
,
control_switch_trio()
,
control_switch()
,
injector_2D()
,
injector_X()
,
injector()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
varToSlideA <- 0
varToSlideB <- 50
for (i in 1:500) {
switchboard(delay = 0.01) %>%
control_slider_pair_Y(inject = c("varToSlideA", "varToSlideB"),
label = c("0 to 100", "0 to 100")) %>%
number_pair(c(varToSlideA, varToSlideB))
}
switchboard_close()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.