mirror of
https://github.com/rstudio/shiny.git
synced 2026-02-04 03:35:06 -05:00
let's make the number of bins reactive instead; now it is very clear what the slider really controls a histogram with different number of bins also serves as a good demo of the property of histograms (small bins --> small variance + large bias)
5 lines
283 B
Markdown
5 lines
283 B
Markdown
This small Shiny application demonstrates Shiny's automatic UI updates. Move
|
|
the *Number of bins* slider and notice how the `renderPlot` expression is
|
|
automatically re-evaluated when its dependant, `input$bins`, changes,
|
|
causing a histogram with a new number of bins to be rendered.
|