show_thrplot | R Documentation |
Plot annual water quality values, targets, and thresholds for a bay segment
show_thrplot(
epcdata,
bay_segment = c("OTB", "HB", "MTB", "LTB"),
thr = c("chla", "la"),
trgs = NULL,
yrrng = c(1975, 2024),
family = NA,
labelexp = TRUE,
txtlab = TRUE,
thrs = FALSE,
partialyr = FALSE
)
epcdata |
data frame of epc data returned by |
bay_segment |
chr string for the bay segment, one of "OTB", "HB", "MTB", "LTB" |
thr |
chr string indicating which water quality value and appropriate target/threshold to plot, one of "chl" for chlorophyll and "la" for light availability |
trgs |
optional |
yrrng |
numeric vector indicating min, max years to include |
family |
optional chr string indicating font family for text labels |
labelexp |
logical indicating if y axis and target labels are plotted as expressions, default |
txtlab |
logical indicating if a text label for the target value is shown in the plot |
thrs |
logical indicating if reference lines are shown only for the regulatory threshold |
partialyr |
logical indicating if incomplete annual data for the most recent year are approximated by five year monthly averages for each parameter |
A ggplot
object
show_thrplot(epcdata, bay_segment = 'OTB', thr = 'chl')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.