plot.seas.norm | R Documentation |
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.
## S3 method for class 'seas.norm' plot(x, start = 1, rep = 0, ylim, varwidth = FALSE, normwidth = FALSE, leg, add.alt = FALSE, main, ylab, ...)
x |
a |
start |
starting bin |
rep |
repeat bins |
ylim |
range of y-axis; either as a single value,
|
varwidth |
|
normwidth |
normalizes the width of the bars to a fixed
|
leg |
if |
add.alt |
|
main |
title for plot; if it is missing, then it will automatically be generated |
ylab |
y-axis label; if it is missing, then it will automatically be generated |
... |
ignored |
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.
Mike Toews
seas.norm
, precip.norm
,
seas.sum
data(mscdata) dat <- mksub(mscdata, id=1108447) d.ss <- seas.sum(dat) plot(seas.norm(d.ss)) plot(precip.norm(d.ss, fun=median)) plot(precip.norm(d.ss, fun=mean)) plot(precip.norm(d.ss, fun=mean, norm="active")) plot(precip.norm(d.ss, fun=median, norm="active")) plot(precip.norm(d.ss), start=15, rep=12) mar <- par("mar") plot(precip.norm(d.ss), add.alt=TRUE) par(mar=mar) d2.ss <- seas.sum(dat, start.day=as.Date("2000-08-01")) plot(precip.norm(d2.ss, fun="mean"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.