Learn R Programming

uroot (version 1.1)

bbmp: Buys-Ballot monthly plot

Description

Plot of monthly paths.

Usage

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

Arguments

vari
a ts object.
s
periodicity of the series.
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.

    monthly path plot if it is asked for.

Details

If vers is the character string "Prot" a panel of four graphics is showed. This option detracted from months selected in the vector mp.

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, 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, s=12, t0=c(1949, 1), mp=c(1,2,11,12), vers="R", plot=TRUE)

Run the code above in your browser using DataLab