Learn R Programming

seas (version 0.2-1)

plot.seas.norm: Plot seasonal normal of a variable, including precipitation normals

Description

Plots a normal of a seasonal variable, including a precipitation normal (which shows rain and snow fractions, where available). Significant missing data values are also indicated.

Usage

## S3 method for class 'seas.norm':
plot(x, maxy, varwidth=FALSE, normwidth=FALSE,
     show.na=TRUE, leg, add.alt=FALSE, \ldots)

Arguments

x
a seas.norm object created by either seas.norm or precip.norm
maxy
maximum y-axis for plot
varwidth
logical; varies the width of each bar directly proportional to the frequency of active days (defined by a threshold); the value is normalized according to the next argument
normwidth
normalizes the width of the bars to a fixed numeric value (in days), or the maximum value if given TRUE; the default FALSE value normalizes each bar to the number of potentially active days
show.na
logical; indicates if NAs should be displayed (as red lines on bottom) or not
leg
if TRUE shows a legend summary of the statistics in the upper left hand corner; if "locator" you can manually place the legend by clicking on the active graphics device
add.alt
logical; adds imperial units on the right-hand y-axis
...
other arguments passed to .seastitle and .seascols for title style, colours, and other customizations to the appearance

Details

The varwidth variable is useful for separating different precipitation patterns throughout the season. It changes the width of the bar proportional to the frequency of precipitation events within the bin. Ideally, the bars will be tall and narrow with intense storms that occur infrequently, such as convective storms. Conversely the bars will be broader with less-intense rainfall events occurring more frequently.

See Also

seas.norm, precip.norm, seas.sum

Examples

Run this code
data(mscdata)

d.ss <- seas.sum(mscdata, id=1108447)
d.nm <- precip.norm(d.ss, fun="mean")
plot(d.nm)

Run the code above in your browser using DataLab