forecast (version 7.3)

plot.ets: Plot components from ETS model

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

"plot"(x, ...) "autoplot"(object, ...)

Arguments

x
Object of class “ets”.
object
Object of class “ets”. Used for ggplot graphics (S3 method consistency).
...
Other plotting parameters to affect the plot.

Value

See Also

ets

Examples

Run this code
fit <- ets(USAccDeaths)
plot(fit)
plot(fit,plot.type="single",ylab="",col=1:3)

library(ggplot2)
autoplot(fit)

Run the code above in your browser using DataCamp Workspace