View source: R/show_sitesegmap.R
show_sitesegmap | R Documentation |
Map site and bay segment attainment categories for a selected year
show_sitesegmap(
epcdata,
yrsel,
param = c("chla", "la"),
trgs = NULL,
thrs = FALSE,
partialyr = FALSE,
showseg = TRUE,
base_size = 12,
family = NA
)
epcdata |
data frame of epc data returned by |
yrsel |
numeric for year to plot |
param |
chr string for which parameter to plot, one of |
trgs |
optional |
thrs |
logical indicating if attainment category is relative to targets (default) or thresholds, passed to |
partialyr |
logical indicating if incomplete annual data for the most recent year are approximated by five year monthly averages for each parameter |
showseg |
logical indicating of bay segment labels are included |
base_size |
numeric indicating text scaling size for plot |
family |
optional chr string indicating font family for text labels |
The map is similar to that returned by show_sitemap
with the addition of polygons for each bay segment colored by the annual attainment category and the site points are sized relative to the selected parameter in param
.
A static ggplot
object is returned
show_sitesegmap(epcdata, yrsel = 2024)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.