Learn R Programming

seas (version 0.2-1)

plot.seas.temp: Plot seasonal temperature normals

Description

Plot seasonal temperature normals using boxplots, and also plot seasonal diurnal variability between minimum and maximum temperature.

Usage

plot.seas.temp(x)

plot.seas.temp(x, start, end, width=11, id,
               names=c("min_t","max_t","mean_t"),
               unit="C", add.alt=FALSE, ylim, ...)

Arguments

x
data.frame of climate data
start
start year; if omitted minimum year will be used
end
end year; if omitted will use same as start, and if start is omitted, will use maximum year
width
size of bin; see mkfact
id
unique station identifier used to extract a subset of data from x
names
array specifying the names of the columns in x which relate to the minimum, maximum and mean temperatures
unit
native temperature units of the data; one of either C, F or K
add.alt
logical; add an alternative scale: if unit is C, the alternative is F; if unit is F, the alternative is C; and if unit is K, the alternative is C
ylim
c(min,max) range for y-axis
...
other arguments passed to .seastitle and .seascols for title style, colours, and other customizations to the appearance

Value

  • Returns values from boxplot statistics on mean temperature.

synopsis

plot.seas.temp(x, start, end, width=11, id, names=c("min_t","max_t","mean_t"), unit="C", add.alt=FALSE, ylim, ...)

Details

Plots boxplots for seasonal temperature normals from mean daily temperature, and diurnal variability with the mean difference of daily minimum and maximum temperatures (red vertical lines).

See Also

plot.seas.var, plot.seas.norm, plot.year

Examples

Run this code
data(mscdata)

plot.seas.temp(mscdata,id=1108447)
plot.seas.temp(mscdata,id=1108447, width="mon", add.alt=TRUE)

Run the code above in your browser using DataLab