lineWAC: lineWAC

lineWACR Documentation

lineWAC

Description

Convenience routine for adding lines to plots

Usage

lineWAC(x, y, col = "blue", lwd = 2, type = "l", ...)

Arguments

x

Usually, Time from a data.frame; a vector of abscissa values. Default: Data$Time

y

A vector of ordinate values for points to plot.

col

Color to pass to plot (default: darkgreen)

lwd

Line width to pass to plot (default: 2)

type

Line type to pass to plot (default: "l")

...

Additional arguments to pass to point()

Details

Sets some plot defaults and calls points; assumes a plot with axes has already been generated to which to add this line. The advantage of using this vs. "lines" is that the times are routinely adjusted to plot values at the center of the interval between the interval following the listed time, as is the convention for RAF netCDF files.

Author(s)

William Cooper

Examples

## Not run: lineWAC (Time, TASX, col='darkgreen')
## Not run: lineWAC (Time, PSXC, lty=2)

NCAR/Ranadu documentation built on Jan. 27, 2023, 1:09 a.m.