-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathui.R
More file actions
27 lines (21 loc) · 859 Bytes
/
ui.R
File metadata and controls
27 lines (21 loc) · 859 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
library(shiny)
# Define the overall UI
shinyUI(
# Use a fluid Bootstrap layout
fluidPage(
# Give the page a title
titlePanel("Subscription of Print / Online / Print & Online packages over one year"),
# Generate a row with a sidebar
sidebarLayout(
# Define the sidebar with one input
sidebarPanel(
selectInput("package", "Type of subscription:",
choices=c("Print", "Online", "Print n Online")),
selectInput("year", "Year:",
choices=c("2011", "2012", "2013","2014", "2015")),
hr(),
helpText("Data of Magazine subscription since 2011.", br(),
"Select the type of subscription and the year to get the appropriate bar plot.")),
# Create a spot for the barplot
mainPanel(
plotOutput("plot1")))))