-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathui.R
More file actions
27 lines (22 loc) · 707 Bytes
/
ui.R
File metadata and controls
27 lines (22 loc) · 707 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
shinyUI(bootstrapPage(
# Give the page a title
titlePanel("Telephones by region"),
# Generate a row with a sidebar
sidebarLayout(
# Define the sidebar with one input
sidebarPanel(
checkboxGroupInput("variable", "Filter by Variable", c('Region','Year'), selected = 'Region'),
selectInput("region", "Region:",
choices=colnames(WorldPhones)),
selectInput("year", "Year:",
choices=rownames(WorldPhones)),
hr(),
helpText("Data from AT&T (1961) The World's Telephones.")
),
# Create a spot for the barplot
mainPanel(
plotOutput("Teleplot")
)
)
)
)