-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
39 lines (29 loc) · 868 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
# ui.R
library(shiny)
# lets look at life ins.
source('global.R')
# Define the overall UI
shinyUI(
# Use a fluid Bootstrap layout
fluidPage(
# Give the page a title
titlePanel("Select some parameters"),
# Generate a row with a sidebar
sidebarLayout(
# Define the sidebar
sidebarPanel(
selectInput('topic', 'Topic:', #select a singleInput
choices=levels(topics)),
selectInput("region", "Region:", # select a single Input
choices= c("Midwest", "Northeast", "South", "West")),
hr(), # horizontal rule line
helpText("BLS - Consumer Expenditure Data. (2013)") # citation
),
# Create a spot for the barplot
mainPanel(
# textOutput("textStr")
plotOutput("meanPlot")
)
)
)
)