-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui1.R
52 lines (39 loc) · 1.49 KB
/
ui1.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
40
41
42
43
44
45
46
47
48
49
50
51
library(shiny)
library(shinythemes)
# Define UI for app
ui<- fluidPage(theme = shinytheme("united"),
setBackgroundColor(
color = c("#FFEEDD", "#FFFFFF")
),
# App title ----
#titlePanel("Ozone level"),
# Navigation bar with two tabs.
navbarPage("Ozone level", collapsible = TRUE,
# Tab for Home page.
tabPanel("Home",
# Sidebar layout
sidebarLayout(
# Inputs: Sidebar panel for inputs
sidebarPanel(
# Input1: Slider input for the number of bins
sliderInput(inputId = "bins",
label = "Number of bins:",
min = 1,
max = 50,
value = 30,
step = 2)
),
# Outputs: Main panel for outputs
mainPanel(
# Output1: Histogram plot
plotOutput(outputId = "distPlot")
)
) #sidebarLayout() is closed.
),
# Tab for displaying the about.md page
tabPanel("About",
div(includeMarkdown("about.md"),
align="justify")
)
) #navbarPage() is closed.
)