Learn R Programming

EGRET (version 2.3.0)

plotConcHist: Graph of annual concentration and flow normalized concentration versus year

Description

Data come from named list, which contains a Daily dataframe with the daily flow data, and an INFO dataframe with metadata. The annual concentrations are "time-weighted" mean concentrations (as opposed to "flow-weighted"). The annual results reported are for a specified "period of analysis" which can be an entire water year, a calendar, a season or even an individual month. User specifies this period of analysis in the call to setupYears. Although there are a lot of optional arguments to this function, most are set to a logical default.

Usage

plotConcHist(eList, yearStart = NA, yearEnd = NA, concMax = NA,
  printTitle = TRUE, tinyPlot = FALSE, plotFlowNorm = TRUE, cex = 0.8,
  cex.axis = 1.1, cex.main = 1.1, lwd = 2, col = "black",
  col.pred = "green", customPar = FALSE, ...)

Arguments

eList
named list with at least the Daily and INFO dataframes
yearStart
numeric is the calendar year containing the first estimated annual value to be plotted, default is NA (which allows it to be set automatically by the data)
yearEnd
numeric is the calendar year just after the last estimated annual value to be plotted, default is NA (which allows it to be set automatically by the data)
concMax
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)
printTitle
logical variable if TRUE title is printed, if FALSE title is not printed (this is best for a multi-plot figure)
tinyPlot
logical variable, if TRUE plot is designed to be plotted small, as a part of a multipart figure, default is FALSE
plotFlowNorm
logical variable if TRUE flow normalized line is plotted, if FALSE not plotted
cex
numerical value giving the amount by which plotting symbols should be magnified
cex.axis
magnification to be used for axis annotation relative to the current setting of cex
cex.main
magnification to be used for main titles relative to the current setting of cex
lwd
number magnification of line width.
col
color of points on plot, see ?par 'Color Specification'
col.pred
color of flow normalized line on plot, see ?par 'Color Specification'
customPar
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.
...
arbitrary graphical parameters that will be passed to genericEGRETDotPlot function (see ?par for options)

See Also

setupYears, genericEGRETDotPlot

Examples

Run this code
yearStart <- 2001
yearEnd <- 2010
eList <- Choptank_eList
# Water year:
plotConcHist(eList, yearStart, yearEnd)
# Graphs consisting of Jun-Aug
eList <- setPA(eList, paStart=6,paLong=3)
plotConcHist(eList, yearStart, yearEnd)

Run the code above in your browser using DataLab