anlzMWRoutlierall {MassWateR} | R Documentation |
Analyze outliers in results file for all parameters
Description
Analyze outliers in results file for all parameters
Usage
anlzMWRoutlierall(
res = NULL,
acc = NULL,
fset = NULL,
fig_height = 4,
fig_width = 8,
format = c("word", "png"),
output_dir,
output_file = NULL,
type = c("box", "jitterbox", "jitter"),
group,
dtrng = NULL,
repel = TRUE,
outliers = FALSE,
labsize = 3,
fill = "lightgrey",
alpha = 0.8,
width = 0.8,
yscl = "auto",
ttlsize = 1.2,
runchk = TRUE,
warn = TRUE
)
Arguments
res |
character string of path to the results file or |
acc |
character string of path to the data quality objectives file for accuracy or |
fset |
optional list of inputs with elements named |
fig_height |
numeric for plot heights in inches |
fig_width |
numeric for plot width in inches |
format |
character string indicating if results are placed in a word file or as separate png files in |
output_dir |
character string of the output directory for the results |
output_file |
optional character string for the file name if |
type |
character indicating |
group |
character indicating whether the summaries are grouped by month, site, or week of year |
dtrng |
character string of length two for the date ranges as YYYY-MM-DD, optional |
repel |
logical indicating if overlapping outlier labels are offset |
outliers |
logical indicating if outliers are returned to the console instead of plotting |
labsize |
numeric indicating font size for the outlier labels |
fill |
numeric indicating fill color for boxplots |
alpha |
numeric from 0 to 1 indicating transparency of fill color |
width |
numeric for width of boxplots |
yscl |
character indicating one of |
ttlsize |
numeric value indicating font size of the title relative to other text in the plot |
runchk |
logical to run data checks with |
warn |
logical to return warnings to the console (default) |
Details
This function is a wrapper to anlzMWRoutlier
to create plots for all parameters with appropriate data in the water quality monitoring results
Value
A word document named outlierall.docx
(or name passed to output_file
) if format = "word"
or separate png files for each parameter if format = "png"
will be saved in the directory specified by output_dir
Examples
# results data path
respth <- system.file('extdata/ExampleResults.xlsx', package = 'MassWateR')
# results data
resdat <- readMWRresults(respth)
# accuracy path
accpth <- system.file('extdata/ExampleDQOAccuracy.xlsx',
package = 'MassWateR')
# accuracy data
accdat <- readMWRacc(accpth)
# create word output
anlzMWRoutlierall(resdat, accdat, group = 'month', format = 'word', output_dir = tempdir())
# create png output
anlzMWRoutlierall(resdat, accdat, group = 'month', format = 'png', output_dir = tempdir())