| utilMWRtitle {MassWateR} | R Documentation |
Format the title for analyze functions
Description
Format the title for analyze functions
Usage
utilMWRtitle(
param,
accdat = NULL,
sumfun = NULL,
site = NULL,
dtrng = NULL,
resultatt = NULL,
locgroup = NULL
)
Arguments
param |
character string of the parameter to plot |
accdat |
optional |
sumfun |
optional character indicating one of |
site |
character string of sites to include |
dtrng |
character string of length two for the date ranges as YYYY-MM-DD |
resultatt |
character string of result attributes to plot |
locgroup |
character string of location groups to plot from the |
Details
All arguments are optional except param, appropriate text strings are appended to the param argument for all other optional arguments indicating the level of filtering used in the plot and data summary if appropriate
Value
A formatted character string used for the title in analysis plots
Examples
# no filters
utilMWRtitle(param = 'DO')
# filter by date only
utilMWRtitle(param = 'DO', dtrng = c('2021-05-01', '2021-07-31'))
# filter by all
utilMWRtitle(param = 'DO', site = 'test', dtrng = c('2021-05-01', '2021-07-31'),
resultatt = 'test', locgroup = 'test')
# title using summary
accpth <- system.file('extdata/ExampleDQOAccuracy.xlsx', package = 'MassWateR')
accdat <- readMWRacc(accpth, runchk = FALSE)
utilMWRtitle(param = 'DO', accdat = accdat, sumfun = 'auto', site = 'test',
dtrng = c('2021-05-01', '2021-07-31'), resultatt = 'test', locgroup = 'test')