-
Notifications
You must be signed in to change notification settings - Fork 1
/
ui.R
57 lines (53 loc) · 1.58 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# UI file for shiny
shinyUI(dashboardPage( skin = "black",
#Application title
dashboardHeader(title = "Marshall crime data analysis",titleWidth = 400),
# dashboard sidebar functions will be inserted here
dashboardSidebar(
sidebarMenu(
menuItem("Main",tabName = "main",icon = icon("dashboard")),
menuItem("Map",tabName = "map",icon = icon("map")),
menuItem("Info",tabName = "info",icon = icon("info-circle"))
),
sliderInput("year",
label = "Year Range",
min = 1975,
max = 2015,
step = 1,
value = c(1975,2015),
sep = ""),
uiOutput("typeSelectOutput"),
radioButtons("parameter",
label = "Select Crime:",
choices = paraToChoose,
selected = "homs_per_100k")
),
# functions that must go in the body of the dashboard.
dashboardBody(
tabItems(
tabItem(tabName = "main",
plotOutput("thePlot"),
br(),
br(),
br(),
br(),
downloadButton("download", "Download results"),
br(),
#tableOutput("results")
DT::dataTableOutput("results"),
tags$head(
tags$link(rel = "stylesheet", type = "text/css", href = "custom.css")
)
),
tabItem(tabName = "map",
plotlyOutput("plotusa"),
verbatimTextOutput("click")
),
tabItem(tabName = "info",
includeMarkdown("info.md"),
hr()
)
)
)
)
)