You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -238,7 +240,7 @@ We used this information to achieve our goals of maximizing use and providing si
238
240
p("Relative weight by proportional size distribution categories. Points indicate means and lines indicate standard error."),
239
241
hr(),
240
242
plotDownloadUI("CPUE_plot", height="200px"),
241
-
p("Catch per unit effort. The box represents the middle 50% of the standard data with the median value indicated by the line inside. The whiskers extend to the smallest and largest values within 1.5 times the inter quartile range and any individual points outside are outliers.")
243
+
p("Catch per unit effort. The box represents the middle 50% of the standard data with the median value indicated by the line inside. The whiskers extend to the smallest and largest values within 1.5 times the inter quartile range and any individual points outside are outliers. CPUE units depend on collection method: boat and raft electrofishing are fish per hour, gill net is fish per net nights, drifting trammel net is fish per 100-m drift, large catfish hoopnet is fish per 24 hour set, bag seine is fish per 0.25 arc (small standing waters) or 0.5 arc (rivers), stream seine is fish per 10-15m haul, and backpack and tow barge electrofishing are fish per 100m².")
242
244
)
243
245
)
244
246
),
@@ -268,14 +270,17 @@ We used this information to achieve our goals of maximizing use and providing si
268
270
uiOutput("instructions"),
269
271
DTOutput("example")),
270
272
tabPanel("Comparisons",
273
+
br(),
274
+
h6("If no plots are displayed, upload a dataset to generate comparison plots."),
275
+
br(),
271
276
plotDownloadUI("LF_plot_UU"),
272
277
p("Proportional size distribution length frequency. Black lines indicate standard error."),
273
278
hr(),
274
279
plotDownloadUI("RW_plot_UU"),
275
280
p("Relative weight by proportional size distribution categories. Points indicate means and lines indicate standard error."),
276
281
hr(),
277
282
plotDownloadUI("CPUE_plot_UU", height="200px"),
278
-
p("Catch per unit effort. The box represents the middle 50% of the standard data with the median value indicated by the line inside. The whiskers extend to the smallest and largest values within 1.5 times the inter quartile range and any individual points outside are outliers. The dashed line represents CPUE for the waterbody. "))
283
+
p("Catch per unit effort. The box represents the middle 50% of the standard data with the median value indicated by the line inside. The whiskers extend to the smallest and largest values within 1.5 times the inter quartile range and any individual points outside are outliers. The dashed line represents CPUE for the waterbody. CPUE units depend on collection method: boat and raft electrofishing are fish per hour, gill net is fish per net nights, drifting trammel net is fish per 100-m drift, large catfish hoopnet is fish per 24 hour set, bag seine is fish per 0.25 arc (small standing waters) or 0.5 arc (rivers), stream seine is fish per 10-15m haul, and backpack and tow barge electrofishing are fish per 100m²."))
279
284
)
280
285
)
281
286
@@ -348,6 +353,12 @@ server <- function(input, output) {
validate("Uploaded dataset must have no empty rows")
360
+
}
361
+
351
362
# Return informative messages if uu data format is incorrect
352
363
validate(
353
364
need("state"%in% colnames(uu), "Uploaded dataset is missing state column"),
@@ -357,14 +368,14 @@ server <- function(input, output) {
357
368
need("year"%in% colnames(uu), "Uploaded dataset is missing year column"),
358
369
need(n_distinct(uu$state) ==1, "State column should contain only one state"),
359
370
need(n_distinct(uu$waterbody_name) ==1, "Waterbody column should contain only one name"),
360
-
#need(uu$common_name %in% FSA::PSDlit$species, "Species name must match one in the provided list in instructions tab")
371
+
need(length(invalid_species_names) ==0, paste0("Species name must match one in the provided list in instructions tab. These names are not valid: ", invalid_species_names))
361
372
)
362
373
363
374
# Duplicate records for all types
364
-
uu_state<-uu %>%
365
-
select(-one_of("ecoregion")) %>%
366
-
mutate(type="state") %>%
367
-
rename(area=state)
375
+
uu_state<-uu %>%
376
+
select(-one_of("ecoregion")) %>%
377
+
mutate(type="state") %>%
378
+
rename(area=state)
368
379
369
380
if ("ecoregion"%in% names(uu)) {
370
381
uu_ecoregion<-uu %>%
@@ -388,7 +399,7 @@ server <- function(input, output) {
388
399
if(exists("uu_ecoregion")){
389
400
rm(uu_ecoregion)
390
401
}
391
-
402
+
392
403
print(uu_all)
393
404
394
405
})
@@ -405,7 +416,7 @@ server <- function(input, output) {
0 commit comments