powered by
Boxplots of raw data by user-defined season for a target year
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, ...)
# S3 method for swmpr raw_boxplot(swmpr_in, param = NULL, target_yr = NULL, criteria = NULL, log_trans = FALSE, converted = FALSE, plot_title = FALSE, ...)
input swmpr object
additional arguments passed to other methods. See assign_season and y_labeler.
assign_season
y_labeler
chr string of variable to plot
numeric, if target year is not specified then all data in the data frame will be used.
numeric, a numeric criteria that will be plotted as a horizontal line
logical, should y-axis be log? Defaults to FALSE
FALSE
logical, were the units converted from the original units used by CDMO? Defaults to FALSE. See y_labeler for details.
logical, should the station name be included as the plot title? Defaults to FALSE
A ggplot object
ggplot
This function produces boxplots of raw, unaggregated data by user-specified season for year of interest
ggplot, assign_season, y_labeler
# 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