seas.temp.plot {seas}R Documentation

Plot seasonal temperature normals

Description

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

Usage

seas.temp.plot(x, width = 11, start = 1, rep = 0, start.day = 1,
           var = c("t_min", "t_max", "t_mean"),
           add.alt = FALSE, ylim, main, ylab, ...)

Arguments

x

a data.frame with Date, t_min, t_max, and (optionally) t_mean columns; x can also have id or name attributes to help give a title for the plot

width

size of bin; see mkseas

start

starting bin number; e.g., if width="mon" and start=5, the plot will start on "May" at the left-hand side

rep

repetition of the bins in the boxplots

start.day

if width is numeric, this is the day of year which is considered to be the start of the first bin

var

array specifying the names of the columns in x which relate to the minimum, maximum and mean temperatures; the units attribute for the y-axis label are taken from the minimum, if available, otherwise it is assumed it is in °C

add.alt

logical; add an alternative scale: if the units are in °C, the alternative is °F; if units are °F, the alternative is °C; and if units are K, the alternative is °C

ylim

c(min, max) range for temperature, or y-axis

main

title for plot; if it is missing, then it will automatically be generated

ylab

y-axis label; if it is missing, then it will automatically be generated

...

ignored

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). If the mean is not supplied, it is calculated from the mean of daily maximum and minimum temperatures.

Value

Returns values from boxplot statistics on mean temperature.

Note

This function was formerly named plot.seas.temp, but required renaming as it is not an S3 method.

Author(s)

Mike Toews

See Also

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

Use mksub to make a subset of x.

Examples

data(mscdata)

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

# starting and ending elsewhere
seas.temp.plot(dat, start=18, rep=3)

[Package seas version 0.6-0 Index]