show_boxplot | R Documentation |
Plot monthly chlorophyll or light attenuation values for a bay segment
show_boxplot(
epcdata,
param = c("chla", "la"),
yrsel = NULL,
yrrng = c(1975, 2024),
ptsz = 0.5,
bay_segment = c("OTB", "HB", "MTB", "LTB"),
trgs = NULL,
family = NA,
labelexp = TRUE,
txtlab = TRUE,
partialyr = FALSE,
points = TRUE
)
epcdata |
data frame of epc data returned by |
param |
chr string for which parameter to plot, one of |
yrsel |
numeric for year to emphasize, shown as separate red points on the plot |
yrrng |
numeric vector indicating min, max years to include |
ptsz |
numeric indicating point size of observations not in |
bay_segment |
chr string for the bay segment, one of "OTB", "HB", "MTB", "LTB" |
trgs |
optional |
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 |
partialyr |
logical indicating if incomplete annual data for the most recent year are approximated by five year monthly averages for each parameter |
points |
logical indicating if jittered point observations, including outliers, are shown in the plot |
Points not included in yrsel
are plotted over the box plots using position_jitter
. Use ptsz = -1
to suppress. The dotted line in the plot shows the large exceedance value.
A ggplot
object
show_boxplot(epcdata, bay_segment = 'OTB')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.