plot.year {climate.plot} | R Documentation |
Plots a continuous set of annual temperature and precipitation statistics for a single climate station.
plot.year(x) plot.year(x, start, end, id, precip.only = FALSE, maxy, ylim, units=c("mm","C"), na.cut = 10, ...)
x |
a data.frame of climate data |
start |
starting year; if missing, minimum year will be used |
end |
ending year; if missing, maximum year will be used |
id |
unique station identifier used to extract a subset of data from dat |
precip.only |
only precipitation data is used; rain and snow ignored |
maxy |
maximum for lower, precipitation graph |
ylim |
c(min,max) range of temperature for upper graph |
units |
native units for precipitation and temperature data |
na.cut |
minimum number of missing data points in a year to make it void; temperature and precipitation are treated independently |
... |
other arguments passed to .seastitle for title style, and other customizations to the appearance |
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.
M.W. Toews
mscdata
, plot.seas.temp
, plot.seas.norm
(can be used for precipitation normals), calculate statistics with tapply
data(mscdata) plot.year(mscdata,id=1108447)