show_boxpep | R Documentation |
Plot monthly chlorophyl, secchi, or tn values values for a bay segment
show_boxpep(
dat,
param = c("chla", "sd", "tn"),
yrsel = NULL,
yrrng = NULL,
ptsz = 0.5,
bay_segment = c("1a", "1b", "2", "3"),
trgs = NULL,
family = NA,
labelexp = TRUE,
txtlab = TRUE
)
dat |
data frame of data returned by |
param |
chr string indicating which water quality value and appropriate threshold to plot, one of "chla" for chlorophyll, "sd" for secchi depth, or "tn" for total nitrogen |
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 "1a", "1b", "2", or "3" |
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 |
Points not included in yrsel
are plotted over the box plots using position_jitter
. Use ptsz = -1
to suppress.
A ggplot
object
show_boxpep(rawdat, bay_segment = '1a')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.