The Sliders app demonstrates the many capabilities of slider controls, including the ability to run an animation sequence.
To run the example locally type:
Shiny slider controls are extremely capable and customizable. Features supported include:
- The ability to input both single values and ranges
- Custom formats for value display (e.g for currency)
- The ability to animate the slider across a range of values
Slider controls are created by calling the
sliderInput function. The UI demonstrates using sliders with a variety of options:
The server side of the Slider application is very straightforward – it creates a data frame containing all of the input values and then renders it as an HTML table:
If you have questions about this article or would like to discuss ideas presented here, please post on RStudio Community. Our developers monitor these forums and answer questions periodically. See help for more help with all things Shiny.