This help topic is for R version 1.5.0. For the current version of R, try https://stat.ethz.ch/R-manual/R-patched/library/ts/html/plot.HoltWinters.html
plot.HoltWinters {ts}R Documentation

Plot function for HoltWinters objects

Description

Produces a chart of the original time series along with the fitted values. Optionally, predicted values (and their confidence bounds) can also be plotted.

Usage

## S3 method for class 'HoltWinters'
plot(x, predicted.values = NA, intervals = TRUE,
                 separator = TRUE, col = 1, col.predicted = 2,
                 col.intervals = 4, lty.separator = 3,
                 ylab = "Observed / Fitted",
                 main = "Holt-Winters filtering", ...)

Arguments

x

Object of class "HoltWinters"

predicted.values

Predicted values as returned by predict.HoltWinters

intervals

If TRUE, the prediction intervals are plotted (default).

separator

If TRUE, a separating line between fitted and predicted values is plotted (default).

col

Color of original data (default: black)

col.predicted

Color of fitted/predicted values (default: black).

col.intervals

Color of predicition intervals (default: blue).

lty.separator

Line type of the separator (default: dashed line).

ylab

Label of the y-axis.

main

Main title.

...

Other graphics parametes.

Author(s)

David Meyer david.meyer@ci.tuwien.ac.at

References

C.C Holt (1957) Forecasting seasonals and trends by exponentially weighted moving averages, ONR Research Memorandum, Carnigie Institute 52.

P.R Winters (1960) Forecasting sales by exponentially weighted moving averages, Management Science 6, 324–342.

See Also

HoltWinters, predict.HoltWinters