Learn R Programming

EGRET (version 2.3.0)

generalAxis: Axis generation for log discharge

Description

Discharge axis tick generation

Usage

generalAxis(x, maxVal, minVal, units = NA, logScale = FALSE,
  tinyPlot = FALSE, padPercent = 5, concentration = TRUE,
  prettyDate = TRUE)

Arguments

x
vector to create scale about
maxVal
number maximum value on returned scale
minVal
number minimum value on returned scale
units
character concentration units. Typically found in INFO$param.units.
logScale
logical whether or not to return a log scale
tinyPlot
logical
padPercent
number used to pad the max and min if not specified
concentration
logical if concentration=TRUE, labels returned as concentration units, otherwise flux units.
prettyDate
logical use 'pretty' limits for date axis if TRUE, or force the startYear/endYear as limits if FALSE

Examples

Run this code
eList <- Choptank_eList
Daily <- getDaily(eList)
INFO <- getInfo(eList)
x <- Daily$Q
max <- max(x)
min <- 0
units <- INFO$param.units
generalAxis(x, max, min, units)
min <- min(x)
generalAxis(x, max, min, units, log=TRUE)

Run the code above in your browser using DataLab