-
Notifications
You must be signed in to change notification settings - Fork 1
/
ui.R
51 lines (44 loc) · 1.56 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
# This is the user-interface definition of a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com
#
library(shiny)
ui <- shinyUI(
navbarPage("Philadelphia Crime Statistics",
theme = "style.css",
# includeCSS("map.css"),
## Sidebar content
tabPanel("Crime Trends",
sidebarLayout(
sidebarPanel(
# menuItem("Widgets", tabName = "widgets", icon = icon("th")),
selectInput("crime.type", "Crime Description",
choices = crime.type, selected = crime.type[7]),
checkboxGroupInput("year", label = "Year",
choices = unique.years,
selected = tail(unique.years,2),
inline = T)
),
mainPanel(
fluidRow(column(plotOutput("plot1"), width = 11)),
fluidRow(column(includeMarkdown('references.Rmd'), width = 11))
)
)
),
tabPanel("Map",
sidebarLayout(
sidebarPanel(
selectInput("crime.type.map", "Crime Description",
choices = crime.type, selected = crime.type[1]),
selectInput("year.map", "Year",
choices = unique.years, selected = unique.years[1])
),
mainPanel(
fluidRow(column(leafletOutput("mymap"), width = 11)),
fluidRow(column(includeMarkdown('references.Rmd'), width = 11))
)
)
)
)
)