Learn R Programming

SWMPrExtension (version 0.3.12)

raw_boxplot: 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 swmpr raw_boxplot(swmpr_in, param = NULL, target_yr = NULL, criteria = NULL, 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

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

Value

A ggplot object

Details

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

See Also

ggplot, assign_season, y_labeler

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
## get data, prep
data(elksmwq)
dat <- elksmwq

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

# }
# NOT RUN {
# }

Run the code above in your browser using DataLab