-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathShiny.R
More file actions
33 lines (25 loc) · 925 Bytes
/
Shiny.R
File metadata and controls
33 lines (25 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Shiny
# Pour des informations complètes sur Shiny et plusieurs tutoriaux, consulter la page http://shiny.rstudio.com/tutorial/
# Pour des exemples : https://shiny.rstudio.com/gallery/
install.packages("shiny")
library(shiny)
runExample("01_hello") # a histogram
runExample("02_text") # tables and data frames
runExample("03_reactivity") # a reactive expression
runExample("04_mpg") # global variables
runExample("05_sliders") # slider bars
runExample("06_tabsets") # tabbed panels
runExample("07_widgets") # help text and submit buttons
runExample("08_html") # Shiny app built from HTML
runExample("09_upload") # file upload wizard
runExample("10_download") # file download wizard
runExample("11_timer") # an automated timer
shinyApp(
ui = fluidPage(
numericInput("n", "n", 1),
plotOutput("plot")
),
server = function(input, output) {
output$plot <- renderPlot( plot(head(cars, input$n)) )
}
)