Learn R Programming

uroot (version 1.3)

bbmp: Buys-Ballot monthly plot

Description

Graphic of monthly paths.

Usage

bbmp (vari, t0, mp, vers, plot)

Arguments

vari
a ts object.
t0
a vector of two elements indicating the year and season of the first observation.
mp
months to plot.
vers
how the plot is showed.
plot
logical. If TRUE a plot is showed. Otherwise, quarterly data are stored.

Value

  • monthly path data.

    graphic of the monthly path if it is asked for.

Details

If vers is the character string Prot a panel of four graphics is showed.

If vers is the character string R all the months selected in the vector mp are showed in the same graphic.

See Also

quarterg, bbap, bb3D, and bbcn.

Examples

Run this code
## Plot in a single graph the path of January, February, November and December and
     ## store its data in the object \code{jfnd}.
     data(AirPassengers)
     jfnd <- bbmp (AirPassengers, t0=c(1949, 1), mp=c(1,2,11,12), vers="R", plot=TRUE)

Run the code above in your browser using DataLab