plot.ets {forecast} | R Documentation |
Produces a plot of the level, slope and seasonal components from an ETS model.
autoplot
will produce an equivelant plot as a ggplot object.
## S3 method for class 'ets' plot(x, ...) ## S3 method for class 'ets' autoplot(object, ...)
x |
Object of class “ets”. |
object |
Object of class “ets”. Used for ggplot graphics (S3 method consistency). |
... |
Other plotting parameters to affect the plot. |
None. Function produces a plot
Rob J Hyndman & Mitchell O'Hara-Wild
fit <- ets(USAccDeaths) plot(fit) plot(fit,plot.type="single",ylab="",col=1:3) library(ggplot2) autoplot(fit)