Map Enterococcus results by month, year, and location
Usage
show_enteromap(
fibdata,
yrsel,
mosel,
areasel = NULL,
wetdry = FALSE,
precipdata = NULL,
temporal_window = NULL,
wet_threshold = NULL
)
Arguments
- fibdata
data frame of Enterococcus sample data as returned by
enterodata
oranlz_fibwetdry
- 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
long_name
column ofenterodata
, see details- wetdry
logical; if
TRUE
, incorporate wet/dry differences (this will result in a call toanlz_fibwetdry
, in which casetemporal_window
andwet_threshold
are required). IfFALSE
(default), do not differentiate between wet and dry samples.- precipdata
input data frame as returned by
read_importrain
. columns should be: station, date (yyyy-mm-dd), rain (in inches). The objectcatchprecip
has this data from 1995-2023 for select Enterococcus stations. IfNULL
, defaults tocatchprecip
.- temporal_window
numeric; required if
wetdry
isTRUE
. number of days precipitation should be summed over (1 = day of sample only; 2 = day of sample + day before; etc.)- wet_threshold
numeric; required if
wetdry
isTRUE
. inches accumulated through the defined temporal window, above which a sample should be defined as being from a 'wet' time period
Value
A leaflet
map for the selected year, month, and area showing stations and FIB concentration category
Details
Placing the mouse cursor over an item on the map will reveal additional information about a station.
See also
anlz_enteromap
for details on the categories