raw_boxplot {SWMPrExtension}R Documentation

Boxplots of raw data by user-defined season for a target year

Description

Boxplots of raw data by user-defined season for a target year

Usage

raw_boxplot(swmpr_in, ...)

## S3 method for class 'swmpr'
raw_boxplot(
  swmpr_in,
  param = NULL,
  target_yr = NULL,
  criteria = NULL,
  free_y = FALSE,
  log_trans = FALSE,
  converted = FALSE,
  plot_title = FALSE,
  ...
)

Arguments

swmpr_in

input swmpr object

...

additional arguments passed to other methods. See assign_season and y_labeler.

param

chr string of variable to plot

target_yr

numeric, if target year is not specified then all data in the data frame will be used.

criteria

numeric, a numeric criteria that will be plotted as a horizontal line

free_y

logical, should the y-axis be free? Defaults to FALSE. If FALSE, defaults to zero, unless negative values are present. If TRUE, y-axis limits are selected by ggplot

log_trans

logical, should y-axis be log? Defaults to FALSE

converted

logical, were the units converted from the original units used by CDMO? Defaults to FALSE. See y_labeler for details.

plot_title

logical, should the station name be included as the plot title? Defaults to FALSE

Details

This function produces boxplots of raw, unaggregated data by user-specified season for year of interest

Value

A ggplot object

Author(s)

Julie Padilla

See Also

ggplot, assign_season, y_labeler

Examples




## get data, prep
data(elksmwq)
dat <- elksmwq

dat <- qaqc(elksmwq, qaqc_keep = c('0', '3', '5'))
raw_boxplot(dat, param = 'do_mgl')




[Package SWMPrExtension version 2.2.5.1 Index]