year.ploy {seas} | R Documentation |
Plot annual temperature and precipitation statistics
Description
Plots a continuous set of annual temperature and precipitation statistics for a single climate station.
Usage
year.plot(x, start.day = 1, precip.only = FALSE, precip.ylim,
temp.ylim, na.cut = 10, ...)
Arguments
x |
a |
start.day |
starting day of annum; either a |
precip.only |
only precipitation data is used; rain and snow ignored |
precip.ylim |
range for precipitation graph |
temp.ylim |
range for temperature graph |
na.cut |
minimum number of missing data points in a year to make it void; temperature and precipitation are treated independently |
... |
ignored |
Details
This simply shows temperature using (boxplot
s) and
annual precipitation totals. The red bars are directly proportional to
the fraction of missing (or NA
) values for the year; statistics
not shown if there are more than na.cut
NA
values in a
given year.
Note
This function was formerly named plot.year
, but required
renaming as it is not an S3 method.
Author(s)
Mike Toews
See Also
mscdata
, seas.temp.plot
,
plot.seas.norm
(can be used for precipitation normals),
calculate statistics with tapply
Examples
data(mscdata)
year.plot(mksub(mscdata, id=1108447))
year.plot(mksub(mscdata, id=1108447,
start=as.Date("1975-08-01"),
end=as.Date("2004-07-31")),
start.day=as.Date("2000-08-01"))