mirror of
https://github.com/rstudio/shiny.git
synced 2026-02-03 03:05:13 -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)
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.