seasonplot {forecast}R Documentation

Seasonal plot

Description

Plots a seasonal plot as described in Makridakis, Wheelwright and Hyndman (1998, chapter 2).

Usage

seasonplot(x, s, season.labels = NULL, year.labels = FALSE,
                 year.labels.left = FALSE, type = "o", main, ylab = "",
                 xlab = NULL, col = 1, ...)

Arguments

x a numeric vector or time series.
s seasonal frequency of x
season.labels Labels for each season in the "year"
year.labels Logical flag indicating whether labels for each year of data should be plotted on the right.
year.labels.left Logical flag indicating whether labels for each year of data should be plotted on the left.
type plot type (as for plot)
main Main title.
ylab Y-axis label
xlab X-axis label
col Colour
... additional arguments to plot.

Value

None.

Author(s)

Rob J Hyndman

References

Makridakis, Wheelwright and Hyndman (1998) Forecasting: methods and applications, Wiley: New York. http://www.robhyndman.info/forecasting/

See Also

monthplot

Examples

seasonplot(AirPassengers)

[Package forecast version 1.23 Index]