anlz_enteromap | R Documentation |
Assign threshold categories to Enterococcus data
anlz_enteromap(
fibdata,
yrsel = NULL,
mosel = NULL,
areasel = NULL,
wetdry = FALSE,
precipdata = NULL,
temporal_window = NULL,
wet_threshold = NULL,
assf = FALSE
)
fibdata |
data frame of Enterococcus sample data as returned by |
yrsel |
optional numeric to filter data by year |
mosel |
optional numeric to filter data by month |
areasel |
optional character string to filter output by stations in the |
wetdry |
logical; if |
precipdata |
input data frame as returned by |
temporal_window |
numeric; required if |
wet_threshold |
numeric; required if |
assf |
logical indicating if the data are further processed as a simple features object with additional columns for |
This function is based on anlz_fibmap
, but is specific to Enterococcus data downloaded via read_importentero
. It creates categories for mapping using show_enteromap
. Optionally, if samples have been defined as 'wet' or not via anlz_fibwetdry
, this can be represented via symbols on the map. Categories based on relevant thresholds are assigned to each observation. The categories are specific to Enterococcus in marine waters (class
of 2 or 3M). A station is categorized into one of four ranges defined by the thresholds as noted in the cat
column of the output, with corresponding colors appropriate for each range as noted in the col
column of the output.
The areasel
argument can indicate valid entries in the long_name
column of enterodata
. For example, use "Old Tampa Bay"
for stations in the subwatershed of Old Tampa Bay, where rows in enterodata
are filtered based on the the selection. All stations are returned if this argument is set as NULL
(default). All valid options for areasel
include "Old Tampa Bay"
, "Hillsborough Bay"
, "Middle Tampa Bay"
, "Lower Tampa Bay"
, "Boca Ciega Bay"
, or "Manatee River"
. One to any of the options can be used.
A data.frame
similar to fibdata
if assf = FALSE
with additional columns describing station categories and optionally filtered by arguments passed to the function. A sf
object if assf = TRUE
with additional columns for show_enteromap
.
anlz_enteromap(enterodata, yrsel = 2020, mosel = 9)
# differentiate wet/dry samples in that time frame
anlz_enteromap(enterodata, yrsel = 2020, mosel = 9, wetdry = TRUE,
temporal_window = 2, wet_threshold = 0.5)
# as sf object
anlz_enteromap(enterodata, assf = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.