bfast (version 1.5.7)

plot.bfast: Methods for objects of class "bfast".

Description

Plot methods for objects of class "bfast".

Usage


# S3 method for bfast
plot(x, type = c("components", "all", "data", "seasonal",
"trend", "noise"), sim = NULL, largest=FALSE, main, ANOVA = FALSE, ...)

Arguments

x

bfast object

type

Indicates the type of plot. See details.

sim

Optional stl object containing the original components used when simulating x.

largest

If TRUE, show the largest jump in the trend component.

ANOVA

if TRUE Derive Slope and Significance values for each identified trend segment

main

an overall title for the plot.

...

further arguments passed to the plot function.

Details

This function creates various plots to demonstrate the results of a bfast decomposition. The type of plot shown depends on the value of type.

  • componentsShows the final estimated components with breakpoints.

  • allPlots the estimated components and breakpoints from all iterations.

  • dataJust plots the original time series data.

  • seasonalShows the trend component including breakpoints.

  • trendShows the trend component including breakpoints.

  • noisePlots the noise component along with its acf and pacf.

If sim is not NULL, the components used in simulation are also shown on each graph.

Examples

Run this code
# NOT RUN {
## See \code{\link[bfast]{bfast}} for examples.
# }

Run the code above in your browser using DataLab