Learn R Programming

DescTools (version 0.99.53)

PlotMonth: Cycle Plot for Seasonal Effects of an Univariate Time Series

Description

Plot seasonal effects of a univariate time series following Cleveland's definition for cycle plots.

Usage

PlotMonth(x, type = "l", labels, xlab = "", ylab = deparse(substitute(x)), ...)

Arguments

x

univariate time series

type

one out of "l" (line) or "h" (histogram), defines the plot type of the year components

labels

the labels for the cyclic component to be displayed on the x-axis

xlab

a title for the x axis: see title.

ylab

a title for the y axis: see title.

...

the dots are passed to the plot command.

Author

Markus Huerzeler (ETH Zurich), slight changes Andri Signorell <andri@signorell.net>

Details

A cycle plot is a graphical method invented to study teh behaviour of a seasonal time series. The seasonal component of a univariate series is graphed. First the January values are graphed for successive years, then the February values and so forth. For each monthly subseries the mean of the values is portrayed by a horizontal line.

References

Cleveland, W. S. (1985) The Elements of Graphing Data. Monterey, CA: Wadsworth.

See Also

Examples

Run this code
PlotMonth(AirPassengers)

Run the code above in your browser using DataLab