-
Notifications
You must be signed in to change notification settings - Fork 1
/
ui.R
39 lines (30 loc) · 813 Bytes
/
ui.R
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
34
35
36
37
38
39
library(shiny)
library(ggplot2)
# Define the overall UI
shinyUI(
# Use a fluid Bootstrap layout
fluidPage(
# Give the page a title
titlePanel("GoSplitGo"),
# Generate a row with a sidebar
sidebarLayout(
# Define the sidebar with one input
sidebarPanel(
selectInput("display", "Display:",
choices=levels(dataset$show),
selected="score"),
hr(),
helpText("What do you want to see?"),
hr(),
sliderInput("past", "No. of days to show:",
min=0, max = 30, value=7
)
),
# Create a spot for the barplot
mainPanel(
h3(textOutput('caption')),
plotOutput("GSGPlot")
)
)
)
)