-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
82 lines (78 loc) · 1.78 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
77
78
79
80
81
82
### UI ####
ui <- material_page(
title = "Endangered Species Act Threatened Corals",
# Typically the image will be placed in a folder labeled 'www'
# at the same level as the application (server.R & ui.R)
includeCSS("style.css"),
material_parallax(
image_source =
"elkhornNOAA.jpg"
),
material_row(
material_column(
width=3,
material_dropdown(
input_id = "species_dropdown",
label = "Species",
choices = c(
"Elkhorn Coral" = "ACRPAL",
"Staghorn Coral" = "ACRCER",
"Lobed Star Coral" = "ORBANN",
"Boulder Star Coral" = "ORBFRA",
"Mountainous Star Coral" = "ORBFAV",
"Pillar Coral" = "DENCYL",
"Rough Cactus Coral" = "MYCFER"
),
selected = c("ACRPAL"),
multiple = TRUE
)
),
material_column(
width=3,
material_slider(
input_id = "year_min",
label = "From Year",
min_value = 1996,
max_value = 2011,
initial_value = 1996,
color = "#ef5350"
)
),
material_column(
width=3,
material_slider(
input_id = "year_max",
label = "To Year",
min_value = 2012,
max_value = 2016,
initial_value = 2016,
color = "#ef5350"
)
)
),
material_row(
material_column(
width = 9,
material_card(
title = "",
leafletOutput("map", height = 700)#,
#DTOutput('table')
#textOutput('text')
)
),
material_column(
width = 2,
material_card(
title = "",
depth = 4,
material_switch(
input_id = "hapc",
label = "HAPCs",
off_label = "",
on_label = ""
),
DTOutput('tbl')
)
)
)
)