plot.seas.temp {seas} | R Documentation |
Plot seasonal temperature normals using boxplots, and also plot seasonal diurnal variability between minimum and maximum temperature.
plot.seas.temp(x) plot.seas.temp(x, width=11, start=1, rep=0, start.day=1, var=c("t_min","t_max","t_mean"), add.alt=FALSE, ylim, main, ylab, ...)
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 |
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.
Returns values from boxplot
statistics on mean temperature.
M.W. Toews
plot.seas.var
, plot.seas.norm
,
plot.year
Use mksub
to make a subset of x
.
data(mscdata) dat <- mksub(mscdata,id=1108447) plot.seas.temp(dat) plot.seas.temp(dat, width="mon", add.alt=TRUE) # starting and ending elsewhere plot.seas.temp(dat, start=18, rep=3)