seas.temp.plot: Plot seasonal temperature normals

Description Usage Arguments Details Value Note Author(s) See Also Examples

Description

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

Usage

1
2
3
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

1
2
3
4
5
6
7
8
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)

Example output



seas documentation built on May 2, 2019, 4:16 a.m.