Description Usage Arguments See Also Examples
Create an interactive slider.
1 2 3 |
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 ( |
round |
|
format |
Customize format values in slider labels. See https://code.google.com/p/jquery-numberformatter/ for syntax details. |
locale |
The locale to be used when applying |
ticks |
|
animate |
|
label |
A descriptive label to be displayed with the widget, or
|
id |
A unique identifier for this input. Usually generated automatically. |
map |
A function with single argument |
Other interactive input: input_checkboxgroup
,
input_radiobuttons
,
input_select
; input_checkbox
;
input_numeric
, input_text
1 2 3 4 5 6 7 8 9 | 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.