File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 3
3
## Changes in version 0.15.0
4
4
5
5
- Tutorial 10a_anova finalized
6
+ - Addition of a test shiny app (histogram.R)
7
+
6
8
7
9
## Changes in version 0.14.0
8
10
Original file line number Diff line number Diff line change
1
+ # Histogram with variable classes
2
+
3
+ ui <- fluidPage(
4
+ titlePanel(" Choix des classes pour un histogramme" ),
5
+ sidebarLayout(
6
+ sidebarPanel(
7
+ sliderInput(inputId = " bins" , label = " Nombre de classes:" ,
8
+ min = 1 , max = 50 , value = 30 )
9
+ ),
10
+ mainPanel(
11
+ plotOutput(outputId = " distPlot" )
12
+ )
13
+ )
14
+ )
15
+
16
+ server <- function (input , output ) {
17
+ output $ distPlot <- renderPlot({
18
+ chart :: chart(data = geyser , ~ waiting ) +
19
+ ggplot2 :: geom_histogram(bins = input $ bins ,
20
+ col = " white" , fill = " #75AADB" ) +
21
+ ggplot2 :: ylab(" Fréquence" )
22
+ })
23
+ }
24
+
25
+ geyser <- data.io :: read(" geyser" , package = " MASS" , lang = " fr" )
26
+ shinyApp(ui , server )
You can’t perform that action at this time.
0 commit comments