-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui.R
175 lines (172 loc) · 4.62 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
ui <- fluidPage(
theme = bs_theme(bootswatch = "flatly"),
useShinydashboard(),
# Application title
titlePanel(h2("Fire Environmental Resilience Metrics", align = "center")),
# Sidebar with selectors
fluidRow(
column(
width = 2,
selectInput(
inputId = "DELWP_REGION",
label = "DELWP REGION OR STATE",
choices = c(
"ALL",
delwpRegions
)
),
selectInput(
inputId = "FIRE_REGION",
label = "FIRE REGION OR STATE",
choices = c(
"ALL",
fireRegions
)
),
selectInput(
inputId = "FIRE_DISTRICT",
label = "FIRE DISTRICT OR STATE",
choices = c(
"ALL",
fireDistricts
)
),
selectInput(
inputId = "FMZ",
label = "FIRE MANAGEMENT ZONE",
choices = c(
"ALL",
fireFMZ
)
),
selectInput(
inputId = "EFG_NAME",
label = "EFG SELECTION",
choices = c(
"ALL EFG",
efgNames
)
),
sliderInput("SEASONS",
label = "Min and Max Season to plot",
min = min(seasons),
max = max(seasons),
value = c(min(seasons), max(seasons)),
sep = "",
step = 1
),
sliderInput("BASELINE",
label = "Select baseline year(s) for species' relative abundance calculations and GMRA",
min = min(seasons),
max = max(seasons),
value = c(min(seasons), min(seasons)),
sep = "",
step = 1
),
selectInput("raSpChoices",
choices = NULL,
label = "Choose species for species trends plot",
selected = NULL,
multiple = T
)
),
# Set of tabs for various output graphics
column(
width = 10,
tabsetPanel(
id = "Tabpanel1",
type = "tabs",
# Tab summarising species, BBTFI and TFI status metrics
tabPanel(
title = "SUMMARY",
fluidRow(
width = 12,
column(
width = 6,
fluidRow(
width = 6,
box(
width = 12,
title = textOutput("gmaTitle"),
solidHeader = TRUE,
collapsible = TRUE,
textOutput("gmaMessage"),
plotlyOutput("gmaPlot", height = 400)
)
),
fluidRow(
width = 6,
box(
width = 12,
title = ("Number of species below threshold"),
solidHeader = TRUE,
collapsible = TRUE,
tableOutput("finalSeasonBelowThreshold")
)
),
fluidRow(
width = 6,
box(
width = 6,
title = ("Species with largest decline"),
solidHeader = TRUE,
collapsible = TRUE,
tableOutput("finalSeasonDecreasers")
),
box(
width = 6,
title = ("Species with largest increase"),
solidHeader = TRUE,
collapsible = TRUE,
tableOutput("finalSeasonIncreasers")
)
)
),
column(
width = 6,
fluidRow(
width = 12,
box(
width = 12,
title = "Overall TFI Status",
solidHeader = TRUE,
collapsible = TRUE,
plotOutput("tfiOverallPlot")
),
box(
width = 12,
title = "Overall Area Burned Below TFI",
solidHeader = TRUE,
collapsible = TRUE,
plotOutput("bbtfiOverallPlot")
)
)
)
)
),
tabPanel(
"TFI STATUS",
plotOutput("tfiPlot", width = "100%", height = 900)
),
tabPanel(
"BBTFI",
plotOutput("bbtfiPlot", width = "100%", height = 900)
),
tabPanel(
"SPECIES TRENDS",
textOutput("deltaRAPlotText"),
plotOutput("deltaRAPlot", width = "100%", height = 700)
)
# ,
#
# tabPanel(
# "Tables",
# h4("Miscellaneous output tables",align = "center"),
# h5("Number of species below threshold by year"),
# tableOutput("belowThreshTable")
#
# )
)
)
)
)