The R Project SVN R

Rev

Rev 15461 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 15461 Rev 15518
Line 5... Line 5...
5
\title{Plotting Time-Series Objects}
5
\title{Plotting Time-Series Objects}
6
\description{
6
\description{
7
  Plotting methods for objects of class \code{"ts"} or \code{"mts"}
7
  Plotting methods for objects of class \code{"ts"} or \code{"mts"}
8
  (multivariate time-series).
8
  (multivariate time-series).
9
}
9
}
-
 
10
\synopsis{
-
 
11
plot.ts(x, y = NULL, type = "l", xlim = NULL, ylim = NULL,
-
 
12
	  xlab = "Time", ylab, log = "",
-
 
13
	  col = par("col"), bg = NA,
-
 
14
	  pch = par("pch"), cex = par("cex"),
-
 
15
	  lty = par("lty"), lwd = par("lwd"),
-
 
16
	  axes = TRUE, frame.plot = axes, ann = par("ann"),
-
 
17
	  main = NULL, plot.type = c("multiple", "single"),
-
 
18
	  xy.labels = n <= 150, xy.lines = do.lab, panel=lines, ...)
-
 
19
}
10
\usage{
20
\usage{
11
\method{plot}{ts}(x, y = NULL, type = "l", xlim = NULL, ylim = NULL,
21
\method{plot}{ts}(x, y = NULL, type = "l", frame.plot = axes,
12
     xlab = "Time", ylab, log = "",
-
 
13
     col = par("col"), bg = NA, pch = par("pch"), cex = par("cex"),
-
 
14
     lty = par("lty"), lwd = par("lwd"),
-
 
15
     axes = TRUE, frame.plot = axes, ann = par("ann"),
-
 
16
     main = NULL, plot.type = c("multiple", "single"),
22
     plot.type = c("multiple", "single"),
17
     xy.labels = n <= 150, xy.lines = do.lab, panel=lines, ...)
23
     xy.labels = n <= 150, xy.lines = do.lab, panel=lines, ...)
18
 
24
 
19
lines(x, \dots)
25
lines(x, \dots)
20
}
26
}
21
\arguments{
27
\arguments{
22
  \item{x,y}{time series objects, usually of class \code{"ts"}.}
28
  \item{x,y}{time series objects, usually of class \code{"ts"}.}
23
 
29
 
24
  \item{type}{the type of plot, see \code{\link{plot}}.  When \code{y}
30
  \item{type}{the type of plot, see \code{\link{plot}}.  When \code{y}
25
    is present, the default will depend on \code{xy.labels}, see below.}
31
    is present, the default will depend on \code{xy.labels}, see below.}
26
 
32
 
-
 
33
  \item{frame.plot}{a function to give the `frame' for each panel.}
-
 
34
 
27
  \item{plot.type}{for multivariate time series, should the series by
35
  \item{plot.type}{for multivariate time series, should the series by
28
    plotted separately (with a common time axis) or on a single plot?}
36
    plotted separately (with a common time axis) or on a single plot?}
29
 
37
 
30
  \item{xy.labels}{logical, indicating if \code{\link{text}()} labels
38
  \item{xy.labels}{logical, indicating if \code{\link{text}()} labels
31
    should be used for an x-y plot.}
39
    should be used for an x-y plot.}