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,
addsta = FALSE
)Arguments
- fibdata
data frame of Enterococcus sample data as returned by
enterodataoranlz_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_namecolumn ofenterodata, see details- wetdry
logical; if
TRUE, incorporate wet/dry differences (this will result in a call toanlz_fibwetdry, in which casetemporal_windowandwet_thresholdare 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 objectcatchpreciphas this data from 1995-2023 for select Enterococcus stations. IfNULL, defaults tocatchprecip.- temporal_window
numeric; required if
wetdryisTRUE. 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
wetdryisTRUE. inches accumulated through the defined temporal window, above which a sample should be defined as being from a 'wet' time period- addsta
logical to add station labels to the map, default
FALSE
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
