The R Project SVN R

Rev

Rev 59039 | Rev 74265 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
42333 ripley 1
% File src/library/stats/man/plot.HoltWinters.Rd
2
% Part of the R package, http://www.R-project.org
59039 ripley 3
% Copyright 1995-2009 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}
27497 ripley 8
\title{Plot function for HoltWinters objects}
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{
30139 hornik 43
  C. C. Holt (1957)
48873 murdoch 44
  Forecasting trends and seasonals by exponentially weighted
27497 ripley 45
  moving averages,
48873 murdoch 46
  \emph{ONR Research Memorandum, Carnegie Institute of Technology} \bold{52}.
61433 ripley 47
 
30139 hornik 48
  P. R. Winters (1960)
27497 ripley 49
  Forecasting sales by exponentially weighted moving averages,
50
  \emph{Management Science} \bold{6}, 324--342.
51
}
52
\author{
55356 ripley 53
  David Meyer \email{David.Meyer@wu.ac.at}
27497 ripley 54
}
55
\seealso{
56
  \code{\link{HoltWinters}}, \code{\link{predict.HoltWinters}}
57
}
58
 
59
\keyword{ts}