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

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/raw_boxplot.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
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

1
2
3
4
5
6
## get data, prep
data(elksmwq)
dat <- elksmwq

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

padilla410/SWMPrExtension documentation built on Dec. 29, 2021, 5:48 a.m.