Learn R Programming

EGRET (version 2.3.0)

plotFluxHist: Graph of annual flux and flow normalized flux versus year

Description

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. The 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. Data come from named list, which contains a Daily dataframe with the daily flow data, and an INFO dataframe with metadata.

Usage

plotFluxHist(eList, yearStart = NA, yearEnd = NA, fluxUnit = 9,
  fluxMax = NA, printTitle = TRUE, plotFlowNorm = TRUE,
  tinyPlot = FALSE, col = "black", col.pred = "green", cex = 0.8,
  cex.axis = 1.1, cex.main = 1.1, lwd = 2, 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)
fluxUnit
number representing entry in pre-defined fluxUnit class array. printFluxUnitCheatSheet
fluxMax
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)
plotFlowNorm
logical variable if TRUE the flow normalized line is plotted, if FALSE not plotted
tinyPlot
logical variable, if TRUE plot is designed to be plotted small, as a part of a multipart figure, default is FALSE
col
color of points on plot, see ?par 'Color Specification'
col.pred
color of flow normalized line on plot, see ?par 'Color Specification'
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 line width
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

Examples

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

Run the code above in your browser using DataLab