Browse Source

Initial commit

Petra Lamborn 5 years ago
commit
cef701fcd4
4 changed files with 74 additions and 0 deletions
  1. 4
    0
      .gitignore
  2. 13
    0
      GRS.Rproj
  3. 7
    0
      Readme.md
  4. 50
    0
      app.R

+ 4
- 0
.gitignore View File

@@ -0,0 +1,4 @@
1
+.Rproj.user
2
+.Rhistory
3
+.RData
4
+.Ruserdata

+ 13
- 0
GRS.Rproj View File

@@ -0,0 +1,13 @@
1
+Version: 1.0
2
+
3
+RestoreWorkspace: Default
4
+SaveWorkspace: Default
5
+AlwaysSaveHistory: Default
6
+
7
+EnableCodeIndexing: Yes
8
+UseSpacesForTab: Yes
9
+NumSpacesForTab: 2
10
+Encoding: UTF-8
11
+
12
+RnwWeave: Sweave
13
+LaTeX: pdfLaTeX

+ 7
- 0
Readme.md View File

@@ -0,0 +1,7 @@
1
+# GRS waiting list
2
+
3
+This is a project for another day, but for now here are the OIA requests of interest:
4
+
5
+* [Sexual Reassignment Surgery Funding](https://fyi.org.nz/request/3088-sexual-reassignment-surgery-funding)
6
+* [Transgender GRS Waitlist & Progress](https://fyi.org.nz/request/4305-transgender-grs-waitlist-progress)
7
+* [GRS Waitlist Update](https://fyi.org.nz/request/7586-grs-waitlist-update)

+ 50
- 0
app.R View File

@@ -0,0 +1,50 @@
1
+#
2
+# This is a Shiny web application. You can run the application by clicking
3
+# the 'Run App' button above.
4
+#
5
+# Find out more about building applications with Shiny here:
6
+#
7
+#    http://shiny.rstudio.com/
8
+#
9
+
10
+library(shiny)
11
+
12
+# Define UI for application that draws a histogram
13
+ui <- fluidPage(
14
+   
15
+   # Application title
16
+   titlePanel("Old Faithful Geyser Data"),
17
+   
18
+   # Sidebar with a slider input for number of bins 
19
+   sidebarLayout(
20
+      sidebarPanel(
21
+         sliderInput("bins",
22
+                     "Number of bins:",
23
+                     min = 1,
24
+                     max = 50,
25
+                     value = 30)
26
+      ),
27
+      
28
+      # Show a plot of the generated distribution
29
+      mainPanel(
30
+         plotOutput("distPlot")
31
+      )
32
+   )
33
+)
34
+
35
+# Define server logic required to draw a histogram
36
+server <- function(input, output) {
37
+   
38
+   output$distPlot <- renderPlot({
39
+      # generate bins based on input$bins from ui.R
40
+      x    <- faithful[, 2] 
41
+      bins <- seq(min(x), max(x), length.out = input$bins + 1)
42
+      
43
+      # draw the histogram with the specified number of bins
44
+      hist(x, breaks = bins, col = 'darkgray', border = 'white')
45
+   })
46
+}
47
+
48
+# Run the application 
49
+shinyApp(ui = ui, server = server)
50
+