View source: R/show_sitemappep.R
show_sitemappep | R Documentation |
Map water quality data for a selected year
show_sitemappep(
dat,
yrsel = NULL,
mosel = NULL,
param = c("chla", "sd", "tn"),
bay_segment = c("1a", "1b", "2", "3"),
maxrel = 0.99,
relative = FALSE
)
dat |
data frame of data returned by |
yrsel |
numeric for years to plot, see details |
mosel |
numeric for months to plot, see details |
param |
chr string indicating which water quality value to plot, one of "chla" for chlorophyll, "sd" for secchi depth, or "tn" for total nitrogen |
bay_segment |
chr string for the bay segment, one or all of "1a", "1b", "2", or "3" |
maxrel |
numeric for the maximum quantile value for scaling if |
relative |
logical indicating if sizes and colors are relative to the entire water quality data base, otherwise scaling is relative only for the points on the map |
Year estimates for the selected parameter are based on median observations across months. All twelve months are used if mosel = NULL
(default). Monthly estimates for the selected parameter are based on median observations across years. All years are used if yrsel = NULL
(default).
The color ramp and size scaling of points are reversed for Secchi observations.
A leaflet
object
# 2018, all months
show_sitemappep(rawdat, yrsel = 2018)
# 2018, July only
show_sitemappep(rawdat, yrsel = 2018, mosel = 7)
# July only, all years
show_sitemappep(rawdat, mosel = 7)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.