Range filter control
Creates a slider widget that lets users filter observations based on a range of values.
filter_slider( id, label, sharedData, column, step = NULL, round = FALSE, ticks = TRUE, animate = FALSE, width = NULL, sep = ",", pre = NULL, post = NULL, timeFormat = NULL, timezone = NULL, dragRange = TRUE, min = NULL, max = NULL ) animation_options( interval = 1000, loop = FALSE, playButton = NULL, pauseButton = NULL )
id |
An HTML element ID; must be unique within the web page |
label |
A human-readable label |
sharedData |
|
column |
A one-sided formula whose values will be used for this slider.
The column must be of type |
step |
Specifies the interval between each selectable value on the
slider (if |
round |
|
ticks |
|
animate |
|
width |
The width of the slider control (see
|
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. |
timeFormat |
Only used if the values are Date or POSIXt objects. A time
format string, to be passed to the Javascript strftime library. See
https://github.com/samsonjs/strftime for more details. The allowed
format specifications are very similar, but not identical, to those for R's
|
timezone |
Only used if the values are POSIXt objects. A string
specifying the time zone offset for the displayed times, in the format
|
dragRange |
This option is used only if it is a range slider (with two
values). If |
min |
The leftmost value of the slider. By default, set to the minimal number in input data. |
max |
The rightmost value of the slider. By default, set to the maximal number in input data. |
interval |
The interval, in milliseconds, between each animation step. |
loop |
|
playButton |
Specifies the appearance of the play button. Valid values
are a one-element character vector (for a simple text label), an HTML tag
or list of tags (using |
pauseButton |
Similar to |
## Only run examples in interactive R sessions if (interactive()) { sd <- SharedData$new(mtcars) filter_slider("mpg", "Miles per gallon", sd, "mpg") }
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.