plot.ets: Plot components from ETS model

Description Usage Arguments Value Author(s) See Also Examples

Description

Produces a plot of the level, slope and seasonal components from an ETS model.

autoplot will produce an equivelant plot as a ggplot object.

Usage

1
2
3
4
## S3 method for class 'ets'
plot(x, ...)
## S3 method for class 'ets'
autoplot(object, range.bars = NULL, ...)

Arguments

x

Object of class “ets”.

object

Object of class “ets”. Used for ggplot graphics (S3 method consistency).

range.bars

Logical indicating if each plot should have a bar at its right side representing relative size. If NULL, automatic selection takes place.

...

Other plotting parameters to affect the plot.

Value

None. Function produces a plot

Author(s)

Rob J Hyndman & Mitchell O'Hara-Wild

See Also

ets

Examples

1
2
3
4
5
6
fit <- ets(USAccDeaths)
plot(fit)
plot(fit,plot.type="single",ylab="",col=1:3)

library(ggplot2)
autoplot(fit)

pli2016/forecast documentation built on May 25, 2019, 8:22 a.m.