plot.seas.sum {seas}R Documentation

Plot boxplots of normalized seasonal sums

Description

Plots normalized sums using boxplots.

Usage

## S3 method for class 'seas.sum':
plot(x, var, norm="days", maxy, logy = FALSE,
    col = "lightgrey", ...)

Arguments

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

Details

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.

Warning

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.

Author(s)

M.W. Toews

See Also

seas.sum, image.seas.sum, seas.sum, seas.norm

Examples

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")


[Package seas version 0.2-1 Index]