control_slider_Y {switchboard} | R Documentation |
A vertical slider to modify the range of a continuous simulation variable.
Description
The control_slider_Y
widget displays a vertical slider to drag and select a new
numeric value of a simulation variable.
Arguments
inject |
String of the variable name to be modified/injected by the
switch widget. For example, |
minimum |
The minimum value of |
maximum |
The maximum value of |
label |
A small caption/label for the widget. |
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., |
Value
Nothing.
Usage
control_slider_Y(inject = "", minimum = 0, maximum = 100, label = "", size = 1, placeOnGrid = c(1, 1))
See Also
Other injectors:
control_slider_Y_pair()
,
control_slider_pair()
,
control_slider()
,
control_switch_pair()
,
control_switch_trio()
,
control_switch()
,
injector_2D()
,
injector_X()
,
injector()
Examples
## Not run:
varToSlide <- 0
for (i in 1:500) {
switchboard(delay = 0.01) %>%
control_slider_Y("varToSlide", label = "0 to 100") %>%
number(varToSlide)
}
switchboard_close()
## End(Not run)