| Line 43... |
Line 43... |
| 43 |
\item{ts.eps}{time series comparison tolerance. Frequencies are
|
43 |
\item{ts.eps}{time series comparison tolerance. Frequencies are
|
| 44 |
considered equal if their absolute difference is less than
|
44 |
considered equal if their absolute difference is less than
|
| 45 |
\code{ts.eps}.}
|
45 |
\code{ts.eps}.}
|
| 46 |
\item{class}{class to be given to the result, or none if \code{NULL}
|
46 |
\item{class}{class to be given to the result, or none if \code{NULL}
|
| 47 |
or \code{"none"}. The default is \code{"ts"} for a single series,
|
47 |
or \code{"none"}. The default is \code{"ts"} for a single series,
|
| 48 |
\code{c("mts", "ts")} for multiple series.}
|
48 |
\code{c("mts", "ts", "matrix")} for multiple series.}
|
| 49 |
\item{names}{a character vector of names for the series in a multiple
|
49 |
\item{names}{a character vector of names for the series in a multiple
|
| 50 |
series: defaults to the colnames of \code{data}, or \code{Series 1},
|
50 |
series: defaults to the colnames of \code{data}, or \code{Series 1},
|
| 51 |
\code{Series 2}, \dots.}
|
51 |
\code{Series 2}, \dots.}
|
| 52 |
\item{x}{an arbitrary \R object.}
|
52 |
\item{x}{an arbitrary \R object.}
|
| 53 |
\item{\dots}{arguments passed to methods (unused for the default method).}
|
53 |
\item{\dots}{arguments passed to methods (unused for the default method).}
|
| Line 115... |
Line 115... |
| 115 |
plot(gnp) # using 'plot.ts' for time-series plot
|
115 |
plot(gnp) # using 'plot.ts' for time-series plot
|
| 116 |
|
116 |
|
| 117 |
## Multivariate
|
117 |
## Multivariate
|
| 118 |
z <- ts(matrix(rnorm(300), 100, 3), start = c(1961, 1), frequency = 12)
|
118 |
z <- ts(matrix(rnorm(300), 100, 3), start = c(1961, 1), frequency = 12)
|
| 119 |
class(z)
|
119 |
class(z)
|
| - |
|
120 |
head(z) # as "matrix"
|
| 120 |
plot(z)
|
121 |
plot(z)
|
| 121 |
plot(z, plot.type = "single", lty = 1:3)
|
122 |
plot(z, plot.type = "single", lty = 1:3)
|
| 122 |
|
123 |
|
| 123 |
## A phase plot:
|
124 |
## A phase plot:
|
| 124 |
plot(nhtemp, c(nhtemp[-1], NA), cex = .8, col = "blue",
|
125 |
plot(nhtemp, c(nhtemp[-1], NA), cex = .8, col = "blue",
|