input_slider {ggvis} | R Documentation |
Create an interactive slider.
input_slider(min, max, value = (min + max)/2, step = NULL, round = FALSE, format = NULL, locale = "us", ticks = TRUE, animate = FALSE, sep = ",", pre = NULL, post = NULL, label = "", id = rand_id("slider_"), map = identity)
min |
The minimum value (inclusive) that can be selected. |
max |
The maximum value (inclusive) that can be selected. |
value |
The initial value of the slider. A numeric vector of length one
will create a regular slider; a numeric vector of length two will create a
double-ended range slider. A warning will be issued if the value doesn't
fit between |
step |
Specifies the interval between each selectable value on the
slider (if |
round |
|
format |
Deprecated. |
locale |
Deprecated. |
ticks |
|
animate |
|
sep |
Separator between thousands places in numbers. |
pre |
A prefix string to put in front of the value. |
post |
A suffix string to put after the value. |
label |
Display label for the control, or |
id |
A unique identifier for this input. Usually generated automatically. |
map |
A function with single argument |
Other interactive input: input_checkbox
,
input_select
, input_text
input_slider(0, 100) input_slider(0, 100, label = "binwidth") input_slider(0, 100, value = 50) # Supply two values to value to make a double-ended sliders input_slider(0, 100, c(25, 75)) # You can use map to transform the outputs input_slider(-5, 5, label = "Log scale", map = function(x) 10 ^ x)