-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.r
76 lines (76 loc) 路 2.17 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
fluidPage(
title = "COVID-19 Mapped",
# stylesheets
tags$head(
tags$link(
href = styles_path,
rel = "stylesheet"
),
tags$link(
href = "https://fonts.googleapis.com",
rel = "preconnect"
),
tags$link(
href = "https://fonts.googleapis.com",
rel = "preconnect",
crossorigin = TRUE
),
tags$link(
href = "https://fonts.googleapis.com/css2?family=PT+Serif:wght@700&family=Roboto&display=swap",
rel = "stylesheet"
)
),
# dashboard content
mainPanel(
# user inputs for map data level & option
tags$section(
selectInput(
inputId = "option_select",
label = "Map",
choices = names(data_options),
selected = "confirmed COVID-19 cases"
),
selectInput(
inputId = "level_select",
label = "by",
choices = names(data_levels),
selected = "state"
),
class = "user-input"
),
# map display
tags$section(
leafletOutput("map"),
class = "map-display"
),
# summary text
tags$section(
htmlOutput("summary"),
class = "summary"
),
tags$footer(
tags$p(
"Made with care by Andrew Solanto & Kristen Corlay. Source on ",
tags$a(
"GitHub.",
href = "https://github.com/solanto/covid-19-mapped",
target = "_blank"
)
),
tags$p(
"Data from",
tags$a(
"HealthData.gov",
href = "https://healthdata.gov/",
target = "_blank"
),
" and the ",
tags$a(
"Johns Hopkins Center for Systems Science and Engineering.",
href = "https://systems.jhu.edu/",
target = "_blank"
)
)
)
)
)