forked from GlobalArchiveManual/CheckEM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.R
590 lines (460 loc) · 37.1 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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
tagList(
useShinyjs(),
dashboardPage(
dbHeader,
dashboardSidebar(
sidebarMenu(
menuItem("Upload data", tabName = "upload", icon = icon("upload")),
# BRUV tabs
shiny::conditionalPanel("input.method == 'point'",
# shiny::conditionalPanel(condition = "input.transect == 'Non-transect e.g. BRUV'",
sidebarMenu(
menuItem("Check metadata & periods", tabName = "checkmetadata", icon = icon("check")),
menuItem("Create & check MaxN", tabName = "createmaxn", icon = icon("check")),
menuItem("Check length & 3D points", tabName = "createlength", icon = icon("check")),
menuItem("Compare MaxN & length", tabName = "maxnlength", icon = icon("equals")),
menuItem("Check habitat", tabName = "checkhab", icon = icon("check")),
menuItem("Create & check mass", tabName = "createmass", icon = icon("check")),
menuItem("Download data", tabName = "downloads", icon = icon("download")))
),
# Transect tabs
shiny::conditionalPanel("input.method == 'transect'",
# shiny::conditionalPanel(condition = "input.transect == 'Transect based e.g. DOV'",
sidebarMenu(
menuItem("Check metadata & periods", tabName = "checkmetadatat", icon = icon("check")),
menuItem("Check length & 3D points", tabName = "createlengtht", icon = icon("check")),
menuItem("Check habitat", tabName = "checkhab", icon = icon("check")),
menuItem("Create & check mass", tabName = "createmasst", icon = icon("check")),
menuItem("Download data", tabName = "downloadst", icon = icon("download")))
),
menuItem("User guide", tabName = "guide", icon = icon("info", lib="font-awesome")),
menuItem("Feedback", tabName = "feedback", icon = icon("comment", lib="font-awesome")),
menuItem("Acknowledgements", tabName = "acknowledgements", icon = icon("hands-helping", lib="font-awesome"))
)
),
dashboardBody(
tags$head(includeHTML(("google-analytics.html"))),
tags$head(tags$link(rel = "shortcut icon", href = "favicon.ico")),
tags$head(tags$style('.selectize-dropdown {z-index: 10000}')),
tags$style(
type = 'text/css',
'.modal-dialog { width: fit-content !important; }
.bttn-unite { width: 300px;}'
),
tabItems(
# Upload data ----
tabItem(tabName = "upload",
fluidRow(tags$head(tags$style(type = 'text/css', '.rpivotTable{ overflow-x: scroll; }')),
column(width = 6,
box(width = NULL, title = "Format of data", status = "primary", solidHeader = TRUE,
radioButtons("method", "Choose the type of method:",
c("Single point e.g. BRUV & BOSS" = "point",
"Transect e.g. DOV & ROV" = "transect"),
selected = "point",
inline = TRUE),
shiny::conditionalPanel("input.method == 'point'",
radioButtons("sample", "How did you record the sample name in EventMeasure:",
c("OpCode" = "opcode",
"Period" = "period"),
selected = "opcode",
inline = TRUE)),
shiny::conditionalPanel("input.method == 'transect'",
radioButtons("sample.t", "How did you record the sample name in EventMeasure:",
c("OpCode and Period" = "opcodeperiod",
"Period only" = "period"),
selected = "opcodeperiod",
inline = TRUE)),
radioButtons("habdirection", "If checking habitat, which directions were annotated?",
c("Forwards only" = "forwards",
"Forwards and backwards" = "both"),
selected = "forwards",
inline = TRUE),
radioButtons("habreliefsep", "If checking habitat, was relief annotated separately?",
c("No" = "no",
"Yes" = "yes"),
selected = "no",
inline = TRUE)
),
box(width = NULL, height = 700, status = "primary", collapsible = TRUE, title = "Aims", solidHeader = TRUE,
includeMarkdown("aims.Rmd"))
),
box(width = 6, height = 110, title = "Upload metadata (csv)", status = "primary", solidHeader = FALSE,
fileInput("upload.metadata", NULL, multiple = TRUE,
accept = c("image/vnd.csv",".csv"))),
box(width = 6, title = "Upload EventMeasure exports (txt files)", status = "primary", solidHeader = FALSE,
box(width = 6, height = 110, title = "Points file", status = "primary", solidHeader = TRUE,
fileInput("upload.points", NULL, multiple = TRUE,
accept = c("image/vnd.txt",".txt"))),
box(width = 6, height = 110, title = "Period file", status = "primary", solidHeader = TRUE,
fileInput("upload.period", NULL, multiple = TRUE,
accept = c("image/vnd.txt",".txt"))),
box(width = 6, height = 110, title = "Length file", status = "primary", solidHeader = TRUE,
fileInput("upload.length", NULL, multiple = TRUE,
accept = c("image/vnd.txt",".txt"))),
box(width = 6, height = 110, title = "3D points file", status = "primary", solidHeader = TRUE,
fileInput("upload.3dpoints", NULL, multiple = TRUE,
accept = c("image/vnd.txt",".txt")))
),
box(width = 6, title = "Upload TransectMeasure exports (txt files)", status = "primary", solidHeader = FALSE,
box(width = 6, height = 110, title = "Forward facing Dot Point Measurements",
status = "primary", solidHeader = TRUE,
fileInput("upload.f.dotpoints", NULL, multiple = TRUE,
accept = c("image/vnd.txt",".txt"))),
shiny::conditionalPanel("input.habdirection == 'both'",
box(width = 6, height = 110, title = "Backward facing Dot Point Measurements",
status = "primary", solidHeader = TRUE,
fileInput("upload.b.dotpoints", NULL, multiple = TRUE,
accept = c("image/vnd.txt",".txt")))
),
shiny::conditionalPanel("input.habreliefsep == 'yes'",
box(width = 6, height = 110, title = "Forwards Relief Dot Point Measurements",
status = "primary", solidHeader = TRUE,
fileInput("upload.r.f.dotpoints", NULL, multiple = TRUE,
accept = c("image/vnd.txt",".txt"))),
shiny::conditionalPanel("input.habdirection == 'both'",
box(width = 6, height = 110, title = "Backwards Relief Dot Point Measurements",
status = "primary", solidHeader = TRUE,
fileInput("upload.r.b.dotpoints", NULL, multiple = TRUE,
accept = c("image/vnd.txt",".txt")))
)
)
),
tabBox(width = 12, height = 800,
title = tagList(shiny::icon("gear"), "Preview data"),
tabPanel("Metadata", div(style = 'overflow-x: scroll',
tableOutput("table.metadata")
)
),
tabPanel("Points", tableOutput("table.points")),
tabPanel("Lengths", tableOutput("table.length")),
tabPanel("3D Points", tableOutput("table.3dpoints")),
tabPanel("Periods", tableOutput("table.periods")),
tabPanel("Habitat", tableOutput("table.habitat"))
)
)),
# Check metadata - point based data -----
tabItem(tabName = "checkmetadata",
fluidRow(div(id="click.metadata.no.samples",
valueBoxOutput("metadata.no.samples")),
div(id="click.metadata.samples.without.fish",
valueBoxOutput("metadata.samples.without.fish")),
div(id="click.points.samples.without.metadata",
valueBoxOutput("points.samples.without.metadata")),
div(id="click.periods.no.end",
valueBoxOutput("periods.no.end")),
div(id="click.samples.without.periods",
valueBoxOutput("samples.without.periods")),
div(id="click.points.outside.periods",
valueBoxOutput("points.outside.periods")),
div(id="click.lengths.outside.periods",
valueBoxOutput("lengths.outside.periods")),
box(width = 4, title = "Enter your correct period time (mins):", status = "primary", solidHeader = TRUE,
numericInput("period.limit", NULL, 60, min = 1, max = 300)),
div(id="click.periods.wrong",
valueBoxOutput("periods.wrong")),
box(width=12, height = 825, leafletOutput("map.metadata", height = 800)))
),
# Check metadata - transect based data ----
tabItem(tabName = "checkmetadatat",
fluidRow(div(id="click.metadata.no.samples.t",
valueBoxOutput("metadata.no.samples.t")),
div(id="click.metadata.samples.without.fish.t",
valueBoxOutput("metadata.samples.without.fish.t")),
div(id="click.length.samples.without.metadata.t",
valueBoxOutput("length.samples.without.metadata.t")),
div(id="click.samples.without.periods.t",
valueBoxOutput("samples.without.periods.t")),
div(id="click.periods.no.end.t",
valueBoxOutput("periods.no.end.t")),
div(id="click.points.outside.periods.t",
valueBoxOutput("points.outside.periods.t")),
div(id="click.lengths.outside.periods.t",
valueBoxOutput("lengths.outside.periods.t")),
div(id="click.periods.avg.t",
valueBoxOutput("periods.avg.t")),
box(width=12, height = 825, leafletOutput("map.metadata.t", height = 800)))
),
# Create maxn -----
tabItem(tabName = "createmaxn",
fluidRow(div(id="click.maxn.total.number",
valueBoxOutput("maxn.total.number")),
div(id="click.points.no.number",
valueBoxOutput("points.no.number")),
div(id="click.maxn.synonym",
valueBoxOutput("maxn.synonym")),
div(id="click.maxn.species.not.observed",
valueBoxOutput("maxn.species.not.observed")),
box(width=10,height = 500,
title = "Plot of most abundant species", status = "primary",
plotOutput("maxn.top.species")),
box(width=2,title = "Species to plot",status="primary",solidHeader = TRUE,numericInput("species.limit", "Number:", 15, min = 5, max = 20)),
box(width=12, title = "Choose species to plot below:", status = "primary", solidHeader = TRUE,
htmlOutput("maxn.species.dropdown",multiple=TRUE)),
box(width=12,leafletOutput("maxn.spatial.plot")),
box(width=12,title = "Plot of abundance by Status", status = "primary", plotOutput("maxn.status.plot", height = 250)),
box(width=12,title = "Plot of abundance by Zone", status = "primary", plotOutput("maxn.zone.simple", height = 250)),
box(width=12,title = "Plot of abundance by Location", status = "primary", plotOutput("maxn.location.plot", height = 250)),
box(width=12,title = "Plot of abundance by Site", status = "primary", plotOutput("maxn.site.plot", height = 250))
)
)
,
# Check length - point based data -----
tabItem(tabName = "createlength",
fluidRow(div(width = 3, id="click.length.abundance",
valueBoxOutput("length.abundance")),
div(width = 3, id="click.threedpoints.abundance",
valueBoxOutput("threedpoints.abundance")),
div(width = 3, id="click.length.synonym",
valueBoxOutput("length.synonym")),
div(width = 3, id = "click.lengths.no.number",
valueBoxOutput("lengths.no.number")),
div(width = 3, id = "click.threedpoints.no.number",
valueBoxOutput("threedpoints.no.number")),
div(width = 3, id = "click.length.species.not.observed",
valueBoxOutput("length.species.not.observed")),
div(width = 3, id = "click.length.wrong.small",
valueBoxOutput("length.wrong.small")),
div(width = 3, id = "click.length.wrong.big",
valueBoxOutput("length.wrong.big")),
div(width = 3, id = "click.length.wrong.big.100",
valueBoxOutput("length.wrong.big.100")),
box(width = 2, title = "RMS limit (mm)?", status = "primary", solidHeader = TRUE,
numericInput("rms.limit", NULL, 20, min = 1, max = 100)),
div(width = 3, id = "click.length.wrong.rms",
valueBoxOutput("length.wrong.rms")),
box(width = 2, title = "Precision to length ratio (%)?", status = "primary", solidHeader = TRUE,
numericInput("precision.limit", NULL, 10, min = 1, max = 100)),
div(width = 3, id = "click.length.wrong.precision",
valueBoxOutput("length.wrong.precision")),
box(title = "Choose species to plot below:", status = "primary", solidHeader = TRUE,
htmlOutput("length.species.dropdown", multiple=TRUE)),
box(width = 2, title = "Range limit (m)?", status="primary", solidHeader = TRUE,
numericInput("range.limit", NULL, 10, min = 0.5, max = 10)),
div(width = 3, id = "click.length.out.of.range",
valueBoxOutput("length.out.of.range")),
box(width = 12, title = "Length histogram", status = "primary", plotOutput("length.histogram", height = 250)),
box(width = 12, title = "Length histogram status", status = "primary", plotOutput("length.histogram.status", height = 600)),
box(width = 12, title = "Zone", status = "primary", plotOutput("length.status.plot", height = 250)),
box(width = 12, title = "Status", status = "primary", plotOutput("length.zone.plot", height = 250))
)
),
# Check length - transect based data -----
tabItem(tabName = "createlengtht",
fluidRow(div(width=3,id="click.length.abundance.t",
valueBoxOutput("length.abundance.t")),
div(width=3,id="click.threedpoints.abundance.t",
valueBoxOutput("threedpoints.abundance.t")),
div(width=3,id="click.length.synonym.t",
valueBoxOutput("length.synonym.t")),
div(width = 3, id = "click.lengths.no.number.t",
valueBoxOutput("lengths.no.number.t")),
div(width = 3, id = "click.threedpoints.no.number.t",
valueBoxOutput("threedpoints.no.number.t")),
div(width=3,id="click.length.species.not.observed.t",
valueBoxOutput("length.species.not.observed.t")),
div(width=3,id="click.length.wrong.small.t",
valueBoxOutput("length.wrong.small.t")),
div(width=3,id="click.length.wrong.big.t",
valueBoxOutput("length.wrong.big.t")),
div(width = 3, id = "click.length.wrong.big.100.t",
valueBoxOutput("length.wrong.big.100.t")),
box(width = 6,
box(title = "Range limit (m)?", status = "primary", solidHeader = TRUE,
numericInput("range.limit.t", NULL, 10, min = 0.5, max = 10)),
div(id="click.length.out.of.range.t",
valueBoxOutput("length.out.of.range.t"))),
box(width = 6,
box(title = "Transect bounds (m)?", status = "primary", solidHeader = TRUE,
numericInput("transect.limit.t", NULL, 2.5, min = 0.5, max = 5)),
div(id="click.length.out.of.transect.t",
valueBoxOutput("length.out.of.transect.t"))),
box(width = 6, #background = "#ecf0f5",
box(title = "RMS limit (mm)?", status = "primary", solidHeader = TRUE,
numericInput("rms.limit.t", NULL, 20, min = 1, max = 100)),
div(id = "click.length.wrong.rms.t",
valueBoxOutput("length.wrong.rms.t"))#,
),
box(width = 6,
box(title = "Precision to length ratio (%)?", status = "primary", solidHeader = TRUE,
numericInput("precision.limit.t", NULL, 10, min = 1, max = 100)),
div(id = "click.length.wrong.precision.t",
valueBoxOutput("length.wrong.precision.t"))),
box(width = 12, title = "Choose species to plot below:", status = "primary", solidHeader = TRUE,
htmlOutput("length.species.dropdown.t",multiple=TRUE)),
box(width=12, title = "Length histogram", status = "primary", plotOutput("length.histogram.t", height = 250)),
box(width=12, title = "Length histogram status", status = "primary", plotOutput("length.histogram.status.t", height = 600)),
box(width=12, title = "Zone", status = "primary", plotOutput("length.status.plot.t", height = 250)),
box(width=12, title = "Status", status = "primary", plotOutput("length.zone.plot.t", height = 250))
)
),
#Create length vs maxn ----
tabItem(tabName = "maxnlength",
fluidRow(div(width=12,id="click.length.vs.maxn",
valueBoxOutput("length.vs.maxn")),
box(width=12, title = "Length vs. MaxN", status = "primary",
plotOutput("length.vs.maxn.plot", height = 600)),
box(title = "Choose species to plot below:", status = "primary", solidHeader = TRUE,
htmlOutput("length.vs.maxn.species.dropdown",multiple=TRUE)),
box(width=12, title = "Length vs. MaxN", status = "primary",
plotOutput("length.vs.maxn.species.plot", height = 600)))
),
#Create mass - point based data ----
tabItem(tabName = "createmass",
fluidRow(box(width = 9,height = 500,title = "Plot of top species by mass", status = "primary",
plotOutput("mass.top.species")),
box(width = ,title = "Species to plot",status="primary",solidHeader = TRUE,numericInput("mass.species.limit", "Number:", 15, min = 5, max = 20)),
box(width = 3,title = "Include elasmobranchs?",status="primary",solidHeader = TRUE,selectInput("mass.include.sharks", "",
c("Yes" = "yes",
"No" = "no"))),
box(width = 12,title = "Choose species to plot below:", status = "primary", solidHeader = TRUE,
htmlOutput("mass.species.dropdown",multiple=TRUE)),
box(width = 12,leafletOutput("mass.spatial.plot")),
box(width = 12, title = "Status", status = "primary", plotOutput("mass.status.plot", height = 250)),
box(width = 12, title = "Zone", status = "primary", plotOutput("mass.zone.plot", height = 250))
)),
#Create mass - transect based data ----
tabItem(tabName = "createmasst",
fluidRow(box(width = 9,height = 500,title = "Plot of top species by mass", status = "primary",
plotOutput("mass.top.species.t")),
box(width = 3,title = "Species to plot",status="primary",solidHeader = TRUE,
numericInput("mass.species.limit.t", "Number:", 15, min = 5, max = 20)),
box(width = 3,title = "Include elasmobranchs?", status="primary", solidHeader = TRUE, selectInput("mass.include.sharks.t", "",
c("Yes" = "yes",
"No" = "no"))),
box(width = 12, title = "Choose species to plot below:", status = "primary", solidHeader = TRUE,
htmlOutput("mass.species.dropdown.t",multiple=TRUE)),
box(width = 12,leafletOutput("mass.spatial.plot.t")),
box(width = 12, title = "Status", status = "primary", plotOutput("mass.status.plot.t", height = 250)),
box(width = 12, title = "Zone", status = "primary", plotOutput("mass.zone.plot.t", height = 250))
)),
# Check habitat - point based data -----
tabItem(tabName = "checkhab",
fluidRow(div(id="click.metadata.samples.without.hab",
valueBoxOutput("metadata.samples.without.hab")),
div(id="click.habitat.samples.without.metadata",
valueBoxOutput("habitat.samples.without.metadata")),
# div(id="click.habitat.annotations.per.sample",
# valueBoxOutput("habitat.annotations.per.sample"))
box(width = 4, title = "Enter your correct number of annotations per sample:", status = "primary", solidHeader = TRUE,
numericInput("number.of.annotations", NULL, 20, min = 1, max = 1000)),
div(id="click.habitat.wrong.annotations",
valueBoxOutput("habitat.wrong.annotations")),
box(width = 12, title = "Broad habitat", status = "primary",
plotOutput("habitat.broad.plot", height = 250)),
box(width = 12, title = "Relief", status = "primary",
plotOutput("habitat.relief.plot", height = 250)),
box(width = 12, title = "Habitat pie chart", status = "primary",
leafletOutput("hab.pies", height = 800)),
box(width = 12,title = "Choose habitat type to plot below:", status = "primary", solidHeader = TRUE,
htmlOutput("hab.dropdown",multiple=TRUE)),
box(width = 12, title = "Habitat bubble plot", status = "primary",
leafletOutput("hab.bubble", height = 800)),
)
),
# Create downloads - point based data -----
tabItem(tabName = "downloads",
fluidRow(
column(width = 4,
box(width = NULL, title = "1. Add project information",
status = "primary", solidHeader = TRUE,
textInput("project.name", label = "Project name (this will be the prefix for all files)", value = "")),
box(width = NULL, title = "2. Download all errors",
status = "primary", solidHeader = TRUE,
numericInput("error.period.length", "Enter correct period time (minutes):", 60, min = 0, max = 120),
numericInput("error.report.range", "Enter range limit (meters):", 10, min = 0.5, max = 20),
numericInput("error.report.rms", "Enter RMS limit (mm):", 20, min = 0, max = 100),
numericInput("error.report.precision", "Enter precision:length ratio limit (%):", 10, min = 0, max = 100),
# br(),
div(style="display:inline-block;width:100%;text-align: center;",
downloadBttn("download.all.errors", style = "unite", color = "danger", label = "All errors in EMobs"))
)),
box(width = 4, title = "3. Select 'errors' to filter out of downloaded data",
status="primary",solidHeader = TRUE,
h4("Filters for MaxN, Length and Mass"),
checkboxInput("error.synonyms", label = "Keep species names that have been updated", value = TRUE),
checkboxInput("error.area", label = "Remove species not observed in the area before (this will also remove sp1, sp2 etc.)", value = FALSE),
checkboxInput("error.zeros", label = "Add in zeros where species aren't present", value = TRUE),
br(),
h4("Filters for Length and Mass"),
checkboxInput("error.length.small", label = "Filter out length measurements smaller than 15% of fishbase maximum", value = FALSE),
checkboxInput("error.length.big", label = "Filter out length measurements larger than fishbase maximum", value = FALSE),
numericInput("error.range.limit", "Remove 3D measurements greater than range limit (meters):", 10, min = 0.5, max = 20),
numericInput("error.rms.limit", "Enter RMS limit (mm):", 20, min = 0, max = 100),
numericInput("error.precision.limit", "Enter precision:length ratio limit (%):", 10, min = 0, max = 100)),
box(width = 4, title = "4. Download final files",
status = "primary", solidHeader = TRUE,
div(style="display:inline-block;width:100%;text-align: center;",
downloadBttn("download.maxn", style = "unite", color = "primary", label = "MaxN"), br(), br(),
downloadBttn("download.length", style = "unite", color = "primary", label = "Length"), br(), br(),
downloadBttn("download.mass", style = "unite", color = "primary", label = "Mass"), br(), br(),
downloadBttn("download.broad.habitat", style = "unite", color = "primary", label = "Habitat"), br(), br())
),
)
),
# Create downloads - transect based data -----
tabItem(tabName = "downloadst",
fluidRow(
column(width = 4,
box(width = NULL, title = "1. Add project information",
status = "primary", solidHeader = TRUE,
textInput("project.name.t", label = "Project name (this will be the prefix for all files)", value = "")),
box(width = NULL, title = "2. Download all errors",
status = "primary", solidHeader = TRUE,
numericInput("error.report.range.t", "Enter range limit (meters):", 10, min = 0.5, max = 20),
numericInput("error.report.transect.t", "Enter transect limit (meters):", 10, min = 0.5, max = 20),
numericInput("error.report.rms.t", "Enter RMS limit (mm):", 20, min = 0, max = 100),
numericInput("error.report.precision.t", "Enter precision:length ratio limit (%):", 10, min = 0, max = 100),
div(style="display:inline-block;width:100%;text-align: center;",
downloadBttn("download.all.errors.t", style = "unite", color = "danger", label = "All errors in EMobs"))
)),
box(width = 4, title = "3. Select 'errors' to filter out of downloaded data",
status="primary",solidHeader = TRUE,
checkboxInput("error.synonyms.t", label = "Keep species names that have been updated", value = TRUE),
checkboxInput("error.area.t", label = "Remove species not observed in the area before", value = FALSE),
checkboxInput("error.zeros.t", label = "Add in zeros where species aren't present", value = TRUE),
checkboxInput("error.length.small.t", label = "Filter out length measurements smaller than 15% of fishbase maximum", value = FALSE),
checkboxInput("error.length.big.t", label = "Filter out length measurements larger than fishbase maximum", value = FALSE),
numericInput("error.range.limit.t", "Remove 3D measurements greater than range limit (meters):", 10, min = 0.5, max = 20),
numericInput("error.transect.limit.t", "Remove 3D measurements outside transect bounds (meters):", 2.5, min = 0, max = 20),
numericInput("error.rms.limit.t", "Enter RMS limit (mm):", 20, min = 0, max = 100),
numericInput("error.precision.limit.t", "Enter precision:length ratio limit (%):", 10, min = 0, max = 100)),
box(width = 4, title = "4. Download final files",
status = "primary", solidHeader = TRUE,
div(style="display:inline-block;width:100%;text-align: center;",
downloadBttn("download.length.t", style = "unite", color = "primary", label = "Length"), br(), br(),
downloadBttn("download.mass.t", style = "unite", color = "primary", label = "Mass"), br(), br(),
downloadBttn("download.broad.habitat.t", style = "unite", color = "primary", label = "Habitat"))
))
),
tabItem(tabName = "acknowledgements",
fluidRow(box(width = 4, status = "primary", height = 800,
" ",HTML('<center><img src="logos-stacked.png" width="100%"></center>')
),
box(width = 8, status = "primary", height = 800, title = "Acknowledgements",
"The Marine Biodiversity Hub is funded by the Australian Government's National Environmental Science Program.",
br(),br(),
"Ningaloo Marine Park example stereo-BRUV data was from the benchmark survey of deepwater fish in the Ningaloo Marine Park, Commonwealth waters. Funded by the Marine Biodiversity Hub, Parks Australia, the CSIRO and the University of Western Australia.",
br(),br(),
"GlobalArchive and CheckEM development has been supported by the Australian Research Data Commons and the
National Environmental Science Program's Marine Biodiversity Hub.", br(), br())
)
),
tabItem(tabName= "guide",
fluidRow(
box(width = 6, status = "primary", collapsible = TRUE, title = "How to use CheckEM", solidHeader = TRUE,
includeMarkdown("howto.Rmd")),
box(width = 6,height = 760, status = "primary", collapsible = TRUE, title = "Marine Ecoregions of the World", solidHeader = TRUE,
leafletOutput("world.regions.leaflet", height = 700)),
box(width = 6, status = "primary", collapsible = TRUE, title = "Australia's Marine Regions", solidHeader = TRUE,
leafletOutput("australia.regions"))
)
),
tabItem(tabName= "feedback",
fluidRow(
HTML('<iframe src="https://docs.google.com/forms/d/e/1FAIpQLSeMIO3UIrkciATxmRA96xs36XejdO6GV-G6yHGXjxZOrzRBVA/viewform?embedded=true" width="100%" height="1000" frameborder="0" marginheight="0" marginwidth="0">Loading…</iframe>')
)
)
)
)
)
)