- Elements to include in the panel.
In the JS expression, you can refer to
values of input and output. For example, if you have an
input with an id of
foo, then you can use
input.foo to read its value. (Be sure not to
modify the input/output objects, as this may cause
sidebarPanel( selectInput( "plotType", "Plot Type", c(Scatter = "scatter", Histogram = "hist")), # Only show this panel if the plot type is a histogram conditionalPanel( condition = "input.plotType == 'hist'", selectInput( "breaks", "Breaks", c("Sturges", "Scott", "Freedman-Diaconis", "[Custom]" = "custom")), # Only show this panel if Custom is selected conditionalPanel( condition = "input.breaks == 'custom'", sliderInput("breakCount", "Break Count", min=1, max=1000, value=10) ) ) )