|
1 | 1 | bootstrapPage( |
2 | 2 |
|
3 | | - selectInput(inputId = "n_breaks", |
| 3 | + selectInput( # bins selector |
| 4 | + inputId = "n_breaks", |
4 | 5 | label = "Number of bins in histogram (approximate):", |
5 | 6 | choices = c(10, 20, 35, 50), |
6 | | - selected = 20), |
| 7 | + selected = 20 |
| 8 | + ), # end of bins selector |
7 | 9 |
|
8 | | - checkboxInput(inputId = "individual_obs", |
| 10 | + checkboxInput( # individual checkbox |
| 11 | + inputId = "individual_obs", |
9 | 12 | label = strong("Show individual observations"), |
10 | | - value = FALSE), |
| 13 | + value = FALSE |
| 14 | + ), # end of individual checkbox |
11 | 15 |
|
12 | | - checkboxInput(inputId = "density", |
| 16 | + checkboxInput( # density checkbox |
| 17 | + inputId = "density", |
13 | 18 | label = strong("Show density estimate"), |
14 | | - value = FALSE), |
| 19 | + value = FALSE |
| 20 | + ), # end of density checkbox |
15 | 21 |
|
| 22 | + # main plot area |
16 | 23 | plotOutput(outputId = "main_plot", height = "300px"), |
17 | 24 |
|
18 | 25 | # Display this only if the density is shown |
19 | 26 | conditionalPanel(condition = "input.density == true", |
20 | | - sliderInput(inputId = "bw_adjust", |
| 27 | + sliderInput( # bandwidth slider |
| 28 | + inputId = "bw_adjust", |
21 | 29 | label = "Bandwidth adjustment:", |
22 | | - min = 0.2, max = 2, value = 1, step = 0.2) |
| 30 | + min = 0.2, max = 2, value = 1, step = 0.2 |
| 31 | + ) # end of bandwidth slider |
23 | 32 | ) |
24 | 33 |
|
25 | 34 | ) |
0 commit comments