File tree Expand file tree Collapse file tree 6 files changed +221
-0
lines changed
rsconnect/shinyapps.io/phgrosjean
rsconnect/documents/Test learnr.Rmd/shinyapps.io/phgrosjean Expand file tree Collapse file tree 6 files changed +221
-0
lines changed Original file line number Diff line number Diff line change 7
7
## Changes in version 0.15.0
8
8
9
9
- Tutorial 10a_anova finalized
10
+ - Addition of a test shiny app (histogram.R)
11
+
10
12
11
13
## Changes in version 0.14.0
12
14
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 )
Original file line number Diff line number Diff line change
1
+ name: histogram
2
+ title: histogram
3
+ username:
4
+ account: phgrosjean
5
+ server: shinyapps.io
6
+ hostUrl: https://api.shinyapps.io/v1
7
+ appId: 590204
8
+ bundleId: 1721590
9
+ url: https://phgrosjean.shinyapps.io/histogram/
10
+ when: 1543261164.38148
11
+ asMultiple: FALSE
12
+ asStatic: FALSE
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : " "
3
+ output : learnr::tutorial
4
+ runtime : shiny_prerendered
5
+ ---
6
+
7
+ ``` {r setup, include=FALSE}
8
+ library(learnr)
9
+ knitr::opts_chunk$set(echo = FALSE)
10
+ ```
11
+
12
+ Write a function that adds any two numbers and then call it:
13
+
14
+ ``` {r add-function, exercise=TRUE, exercise.lines = 5}
15
+ add <- function() {
16
+
17
+ }
18
+ ```
19
+
20
+ ``` {r quiz}
21
+ quiz(
22
+ question("Which package contains functions for installing other R packages?",
23
+ answer("base"),
24
+ answer("tools"),
25
+ answer("utils", correct = TRUE),
26
+ answer("codetools")
27
+ )
28
+ )
29
+ ```
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change
1
+ name: learnr
2
+ title: learnr
3
+ username:
4
+ account: phgrosjean
5
+ server: shinyapps.io
6
+ hostUrl: https://api.shinyapps.io/v1
7
+ appId: 590599
8
+ bundleId: 1721660
9
+ url: https://phgrosjean.shinyapps.io/learnr/
10
+ when: 1543264138.79986
11
+ asMultiple: FALSE
12
+ asStatic: FALSE
You can’t perform that action at this time.
0 commit comments