plot.seas.sum {seas} | R Documentation |
Plots normalized sums using boxplots.
## S3 method for class 'seas.sum': plot(x, var, norm="days", maxy, logy = FALSE, col = "lightgrey", ...)
x |
a seas.sum object created by seas.sum |
var |
name of seasonal variable in x |
norm |
variable to normalize by, either "days" (to
produce unit/day) or "active" (unit/day, when
active); it may also be a matrix with the same dimensions as
x$days |
maxy |
maximum y-axis for plot |
logy |
logical ; makes the y-axis logarithmic, which may be
necessary of strongly skewed distributions (usually made using small
width arguments) |
col |
colour for boxplot, default is "lightgrey" |
... |
other arguments passed to .seastitle and
.seascols for title style, colours, and other
customizations to the appearance |
This function is a boxplot interpretation of a seas.sum
object. This is not the same as treating var
as a continuous
variable and using plot.seas.var
, since a seas.sum
object has been smoothed. Daily extreme values are not well
represented here as a result.
The appearance of the boxplots are sensitive to the width
parameter specified in the seas.sum
function on strongly
discontinuous variables. Small bin widths capture the discontinuities
better than wider bins, and changes the skew of the distribution.
For instance, the median will appear to decrease as width
decreases.
M.W. Toews
seas.sum
, image.seas.sum
,
seas.sum
, seas.norm
data(mscdata) van.ss <- seas.sum(mscdata, id=1108447) # Normalized by the number of days in each bin plot(van.ss) # Normalized by the number of active days in each bin plot(van.ss,norm="active")