forecast (version 4.05)

plot.bats: Plot components from BATS model

Description

Produces a plot of the level, slope and seasonal components from a BATS or TBATS model.

Usage

## S3 method for class 'bats':
plot(x, main="Decomposition by BATS model", ...) 
## S3 method for class 'tbats':
plot(x, main="Decomposition by TBATS model", ...)

Arguments

x
Object of class ets.
main
Main title for plot.
...
Other plotting parameters passed to par.

Value

  • None. Function produces a plot

See Also

bats,tbats

Examples

Run this code
fit <- bats(USAccDeaths)
plot(fit)

fit2 <- tbats(USAccDeaths)
plot(fit2)

Run the code above in your browser using DataCamp Workspace