This plot is useful for visual examination of the ability of the WRTDS, or other model, to fit the data, seen in a time-series perspective. The graph is most useful when it covers a period of just a few years and not the complete record but a complete record can be done by repeated use over a series of segments.
Although there are a lot of optional arguments to this function, most are set to a logical default.
Data come from named list, which contains a Sample dataframe with the sample data, a Daily dataframe with the daily flow data, and an INFO dataframe with metadata.
plotConcTimeDaily(eList, yearStart = NA, yearEnd = NA, tinyPlot = FALSE,
concMax = NA, printTitle = TRUE, plotGenConc = TRUE, cex = 0.8,
cex.axis = 1.1, randomCensored = FALSE, cex.main = 1.1,
customPar = FALSE, col = "black", lwd = 1, prettyDate = TRUE,
usgsStyle = FALSE, ...)
named list with at least the Daily, Sample, and INFO dataframes
numeric specifying the starting date (expressed as decimal years, for example 1989.0) for the plot
numeric specifying the ending date for the plot
logical variable, if TRUE plot is designed to be short and wide, default is FALSE.
number specifying the maximum value to be used on the vertical axis, default is NA (which allows it to be set automatically by the data)
logical variable if TRUE title is printed, if FALSE title is not printed (this is best for a multi-plot figure)
logical variable. If TRUE
, annual concentration points
from WRTDSKalman
output are plotted, if FALSE
WRTDS concentration is plotted,
numerical value giving the amount by which plotting symbols should be magnified
magnification to be used for axis annotation relative to the current setting of cex
if TRUE plot a random value for censored data. Default is FALSE.
magnification to be used for main titles relative to the current setting of cex
logical defaults to FALSE. If TRUE, par() should be set by user before calling this function (for example, adjusting margins with par(mar=c(5,5,5,5))). If customPar FALSE, EGRET chooses the best margins depending on tinyPlot.
color of points on plot, see ?par 'Color Specification'
number line width
logical use 'pretty' limits for date axis if TRUE, or force the yearStart/yearEnd as limits if FALSE
logical option to use USGS style guidelines. Setting this option to TRUE does NOT guarantee USGS compliance. It will only change automatically generated labels
arbitrary functions sent to the generic plotting function. See ?par for details on possible parameters
selectDays
, genericEGRETDotPlot
eList <- Choptank_eList
# Water year:
plotConcTimeDaily(eList)
plotConcTimeDaily(eList,
yearStart = 1998,
yearEnd = 2001,
plotGenConc = FALSE)
Run the code above in your browser using DataLab