Learn R Programming

seas (version 0.2-1)

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

synopsis

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

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.

See Also

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

Examples

Run this code
data(mscdata)

plot.year(mscdata,id=1108447)

Run the code above in your browser using DataLab