View source: R/show_fibmatmap.R
show_fibmatmap | R Documentation |
Map Fecal Indicator Bacteria matrix results by year
show_fibmatmap(
fibdata,
yrsel,
areasel,
lagyr = 3,
subset_wetdry = c("all", "wet", "dry"),
precipdata = NULL,
temporal_window = NULL,
wet_threshold = NULL,
addsta = FALSE,
listout = FALSE,
warn = TRUE
)
fibdata |
input data frame as returned by |
yrsel |
numeric value indicating the year to map |
areasel |
vector of bay segment or area names to include, see details |
lagyr |
numeric for year lag to calculate categories, see details |
subset_wetdry |
character, subset data frame to only wet or dry samples as defined by |
precipdata |
input data frame as returned by |
temporal_window |
numeric; required if |
wet_threshold |
numeric; required if |
addsta |
logical to add station labels to the map, default |
listout |
logical to return a list of simple feature objects for the data used in the |
warn |
logical to print warnings about stations with insufficient data, default |
Placing the mouse cursor over an item on the map will reveal additional information about a segment or station.
If the input is from EPCHC (from read_importfib
, i.e., fibdata
), valid entries for areasel
include 'Alafia River', 'Hillsborough River', 'Big Bend', 'Cockroach Bay', 'East Lake Outfall', 'Hillsborough Bay', 'Little Manatee River', 'Lower Tampa Bay', 'McKay Bay', 'Middle Tampa Bay', 'Old Tampa Bay', 'Palm River', 'Tampa Bypass Canal', and 'Valrico Lake'. If the input data is from read_importentero
(i.e., enterodata
)), valid entries for areasel
include 'OTB', 'HB', 'MTB', 'LTB', 'BCB', and 'MR'. If the input is from read_importwqp
for Manatee County (21FLMANA_WQX, mancofibdata
), Pasco County (21FLPASC_WQX, pascofibdata
), Polk County (21FLPOLK_WQX, polcofibdata
), or Hillsborough County Environmental Services Division (21FLHESD_WQX, hcesdfibdata
) valid entries for areasel
are any that are present in the area
column for the respective input datasets.
Bay segment matrix categories can be shown if input data are from read_importentero
). Stations for these data were chosen specifically as downstream endpoints for each bay segment, whereas the other datasets are not appropriate for estimating bay segment outcomes.
A leaflet
map for the selected year and area showing station matrix scores if listout = FALSE
(default). Bay segment scores are also shown if the input data are not from EPCHC. A list of simple feature objects is returned if listout = TRUE
.
anlz_fibmatrix
for details on the categories
# non-EPCHC, non Manatee County data
show_fibmatmap(enterodata, yrsel = 2020, areasel = 'OTB')
# EPCHC data
show_fibmatmap(fibdata, yrsel = 2016,
areasel = c("Hillsborough River", "Alafia River"))
# Manatee County data
show_fibmatmap(mancofibdata, yrsel = 2020, areasel = 'Manatee River')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.