plot.year {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

plot.year(x)

plot.year(x, start, end, id, precip.only = FALSE, maxy, ylim,
          units=c("mm","C"), na.cut = 10, ...)

Arguments

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 and .seascols for title style, colours, and other customizations to the appearance

Details

This simply shows temperature using (boxplots) 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.

Author(s)

M.W. Toews

See Also

mscdata, plot.seas.temp, plot.seas.norm (can be used for precipitation normals), calculate statistics with tapply

Examples

data(mscdata)

plot.year(mscdata,id=1108447)

[Package seas version 0.2-1 Index]