Learn R Programming

uroot (version 1.4-1)

bbplot: Buys-Ballot Plot for Seasonal Time Series

Description

Plot seasonal paths in quarterly and monthly time series.

Usage

bbplot (wts, colour=c("SlateBlue","SeaGreen","red","magenta"))

Arguments

wts
a univariate time series object.
colour
colours for lines.

See Also

bbaplot, bb3D, and bbcn.

Examples

Run this code
## Plot seasonal paths in the original data and the logarithms of the first differences.
    data(AirPassengers)
    bbplot(wts=AirPassengers)
    bbplot(wts=diff(log(AirPassengers), lag=1))

Run the code above in your browser using DataLab