| 42333 |
ripley |
1 |
% File src/library/stats/man/plot.HoltWinters.Rd
|
| 68948 |
ripley |
2 |
% Part of the R package, https://www.R-project.org
|
| 74265 |
hornik |
3 |
% Copyright 1995-2018 R Core Team
|
| 42333 |
ripley |
4 |
% Distributed under GPL 2 or later
|
|
|
5 |
|
| 27497 |
ripley |
6 |
\name{plot.HoltWinters}
|
| 56186 |
murdoch |
7 |
\alias{plot.HoltWinters}
|
| 89418 |
smeyer |
8 |
\title{Plotting \code{"HoltWinters"} Objects}
|
| 27497 |
ripley |
9 |
\description{
|
|
|
10 |
Produces a chart of the original time series along with the fitted
|
|
|
11 |
values. Optionally, predicted values (and their confidence bounds) can
|
|
|
12 |
also be plotted.
|
|
|
13 |
}
|
|
|
14 |
\usage{
|
|
|
15 |
\method{plot}{HoltWinters}(x, predicted.values = NA, intervals = TRUE,
|
|
|
16 |
separator = TRUE, col = 1, col.predicted = 2,
|
|
|
17 |
col.intervals = 4, col.separator = 1, lty = 1,
|
|
|
18 |
lty.predicted = 1, lty.intervals = 1, lty.separator = 3,
|
| 44243 |
ripley |
19 |
ylab = "Observed / Fitted",
|
|
|
20 |
main = "Holt-Winters filtering",
|
|
|
21 |
ylim = NULL, \dots)
|
| 27497 |
ripley |
22 |
}
|
|
|
23 |
\arguments{
|
|
|
24 |
\item{x}{Object of class \code{"HoltWinters"}}
|
|
|
25 |
\item{predicted.values}{Predicted values as returned by \code{predict.HoltWinters}}
|
|
|
26 |
\item{intervals}{If \code{TRUE}, the prediction intervals are plotted (default).}
|
|
|
27 |
\item{separator}{If \code{TRUE}, a separating line between fitted and predicted values is plotted (default).}
|
|
|
28 |
\item{col, lty}{Color/line type of original data (default: black solid).}
|
|
|
29 |
\item{col.predicted, lty.predicted}{Color/line type of
|
|
|
30 |
fitted and predicted values (default: red solid).}
|
|
|
31 |
\item{col.intervals, lty.intervals}{Color/line type of prediction
|
|
|
32 |
intervals (default: blue solid).}
|
|
|
33 |
\item{col.separator, lty.separator}{Color/line type of
|
|
|
34 |
observed/predicted values separator (default: black dashed).}
|
|
|
35 |
\item{ylab}{Label of the y-axis.}
|
|
|
36 |
\item{main}{Main title.}
|
|
|
37 |
\item{ylim}{Limits of the y-axis. If \code{NULL}, the range is chosen
|
|
|
38 |
such that the plot contains the original series, the fitted values,
|
|
|
39 |
and the predicted values if any.}
|
| 40281 |
ripley |
40 |
\item{\dots}{Other graphics parameters.}
|
| 27497 |
ripley |
41 |
}
|
|
|
42 |
\references{
|
| 88603 |
hornik |
43 |
\bibshow{R:Holt:1957, R:Holt:2004, R:Winters:1960}
|
| 27497 |
ripley |
44 |
}
|
|
|
45 |
\author{
|
| 55356 |
ripley |
46 |
David Meyer \email{David.Meyer@wu.ac.at}
|
| 27497 |
ripley |
47 |
}
|
|
|
48 |
\seealso{
|
|
|
49 |
\code{\link{HoltWinters}}, \code{\link{predict.HoltWinters}}
|
|
|
50 |
}
|
| 89418 |
smeyer |
51 |
\keyword{hplot}
|
| 27497 |
ripley |
52 |
\keyword{ts}
|