Description Usage Arguments Value Author(s) See Also Examples
Produces a plot of the level, slope and seasonal components from a BATS or TBATS model. The plotted components are Box-Cox transformed using the estimated transformation parameter.
1 2 3 4 5 6 7 8 9 10 11 | ## S3 method for class 'bats'
plot(x, main = "Decomposition by BATS model", ...)
## S3 method for class 'tbats'
autoplot(object, range.bars = FALSE, ...)
## S3 method for class 'bats'
autoplot(object, range.bars = FALSE, ...)
## S3 method for class 'tbats'
plot(x, main = "Decomposition by TBATS model", ...)
|
x |
Object of class “bats/tbats”. |
main |
Main title for plot. |
... |
Other plotting parameters passed to |
object |
Object of class “bats/tbats”. |
range.bars |
Logical indicating if each plot should have a bar at its right side representing relative size. If NULL, automatic selection takes place. |
None. Function produces a plot
Rob J Hyndman
1 2 3 4 5 | ## Not run:
fit <- tbats(USAccDeaths)
plot(fit)
autoplot(fit, range.bars = TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.