plot.seas.param {climate.plot}R Documentation

Plot seasonal normals of a given parameter

Description

Plot seasonal normals using boxplots of a given parameter.

Usage

plot.seas.param(x, param)

plot.seas.param(x, start, end, width=11, param, 
  col = "light grey", id, ylab, ylim, add.alt, ...)

Arguments

x a data.frame
start start year; if omitted minimum year will be used
end end year; if omitted will use same as start, and if start is omitted, will use maximum year
width size of bin; see mkfact
param a parameter; a column name in x
col colour for the boxplots; default is "light grey"
id unique station identifier used to extract a subset of data from x
ylab label for the y-axis; if there is an alternative y-axis, this can have a length of two for the second label
ylim c(min,max) range for y-axis
add.alt this adds an alternative axis, and is specified by c(slope,inter); for example, if the primary measure is in degrees C, a secondary scale in K would be c(1, 273.15), or in degrees F would be c(5/9, 32)
... other arguments passed to .seastitle for title style, and other customizations to the appearance

Details

Shows normals of a seasonally varying parameter using boxplots.

Value

Returns values from boxplot statistics on the parameter.

Author(s)

M.W. Toews

See Also

plot.seas.norm, plot.year

Examples

data(mscdata)

plot.seas.param(mscdata, param="max_t", col="tomato", id=1108447,
  add.alt=c(5/9,32), ylab=c("Maximum temperature, C","F"))
abline(h=0)

plot.seas.param(subset(mscdata,precip>0), param="precip",
  col="azure", id=1108447)

[Package climate.plot version 0.1-2 Index]