| Line 33... |
Line 33... |
| 33 |
should be drawn for an x-y plot. Defaults to the value of
|
33 |
should be drawn for an x-y plot. Defaults to the value of
|
| 34 |
\code{xy.labels} if that is logical, otherwise to \code{TRUE}.}
|
34 |
\code{xy.labels} if that is logical, otherwise to \code{TRUE}.}
|
| 35 |
|
35 |
|
| 36 |
\item{panel}{a \code{function(x, col, bg, pch, type, ...)} which gives the
|
36 |
\item{panel}{a \code{function(x, col, bg, pch, type, ...)} which gives the
|
| 37 |
action to be carried out in each panel of the display for
|
37 |
action to be carried out in each panel of the display for
|
| 38 |
\code{plot.type="multiple"}. The default is \code{lines}.}
|
38 |
\code{plot.type = "multiple"}. The default is \code{lines}.}
|
| 39 |
|
39 |
|
| 40 |
\item{nc}{the number of columns to use when \code{type="multiple"}.
|
40 |
\item{nc}{the number of columns to use when \code{type = "multiple"}.
|
| 41 |
Defaults to 1 for up to 4 series, otherwise to 2.}
|
41 |
Defaults to 1 for up to 4 series, otherwise to 2.}
|
| 42 |
\item{yax.flip}{logical indicating if the y-axis (ticks and numbering)
|
42 |
\item{yax.flip}{logical indicating if the y-axis (ticks and numbering)
|
| 43 |
should flip from side 2 (left) to 4 (right) from series to series
|
43 |
should flip from side 2 (left) to 4 (right) from series to series
|
| 44 |
when \code{type="multiple"}.}
|
44 |
when \code{type = "multiple"}.}
|
| 45 |
\item{mar.multi, oma.multi}{the (default) \code{\link{par}} settings
|
45 |
\item{mar.multi, oma.multi}{the (default) \code{\link{par}} settings
|
| 46 |
for \code{plot.type="multiple"}. Modify with care!}
|
46 |
for \code{plot.type = "multiple"}. Modify with care!}
|
| 47 |
\item{axes}{logical indicating if x- and y- axes should be drawn.}
|
47 |
\item{axes}{logical indicating if x- and y- axes should be drawn.}
|
| 48 |
\item{\dots}{additional graphical arguments, see \code{\link{plot}},
|
48 |
\item{\dots}{additional graphical arguments, see \code{\link{plot}},
|
| 49 |
\code{\link{plot.default}} and \code{\link{par}}.}
|
49 |
\code{\link{plot.default}} and \code{\link{par}}.}
|
| 50 |
}
|
50 |
}
|
| 51 |
\details{
|
51 |
\details{
|
| Line 74... |
Line 74... |
| 74 |
mar.multi = c(0,0,0,0), oma.multi = c(1,1,5,1))
|
74 |
mar.multi = c(0,0,0,0), oma.multi = c(1,1,5,1))
|
| 75 |
title("plot(ts(..), axes=FALSE, ann=FALSE, frame.plot=TRUE, mar..., oma...)")
|
75 |
title("plot(ts(..), axes=FALSE, ann=FALSE, frame.plot=TRUE, mar..., oma...)")
|
| 76 |
|
76 |
|
| 77 |
z <- window(z[,1:3], end = c(1969,12))
|
77 |
z <- window(z[,1:3], end = c(1969,12))
|
| 78 |
plot(z, type = "b") # multiple
|
78 |
plot(z, type = "b") # multiple
|
| 79 |
plot(z, plot.type="single", lty=1:3, col=4:2)
|
79 |
plot(z, plot.type = "single", lty = 1:3, col = 4:2)
|
| 80 |
|
80 |
|
| 81 |
## A phase plot:
|
81 |
## A phase plot:
|
| 82 |
plot(nhtemp, c(nhtemp[-1], NA), cex = .8, col="blue",
|
82 |
plot(nhtemp, c(nhtemp[-1], NA), cex = .8, col = "blue",
|
| 83 |
main = "Lag plot of New Haven temperatures")
|
83 |
main = "Lag plot of New Haven temperatures")
|
| 84 |
## a clearer way to do this would be
|
84 |
## a clearer way to do this would be
|
| 85 |
\dontrun{
|
85 |
\dontrun{
|
| 86 |
plot(nhtemp, lag(nhtemp, 1), cex = .8, col="blue",
|
86 |
plot(nhtemp, lag(nhtemp, 1), cex = .8, col = "blue",
|
| 87 |
main = "Lag plot of New Haven temperatures")
|
87 |
main = "Lag plot of New Haven temperatures")
|
| 88 |
}
|
88 |
}
|
| 89 |
|
89 |
|
| 90 |
## xy.lines and xy.labels are FALSE for large series:
|
90 |
## xy.lines and xy.labels are FALSE for large series:
|
| 91 |
plot(lag(sunspots, 1), sunspots, pch = ".")
|
91 |
plot(lag(sunspots, 1), sunspots, pch = ".")
|
| 92 |
|
92 |
|
| 93 |
SMI <- EuStockMarkets[, "SMI"]
|
93 |
SMI <- EuStockMarkets[, "SMI"]
|
| 94 |
plot(lag(SMI, 1), SMI, pch = ".")
|
94 |
plot(lag(SMI, 1), SMI, pch = ".")
|
| 95 |
plot(lag(SMI, 20), SMI, pch = ".", log = "xy",
|
95 |
plot(lag(SMI, 20), SMI, pch = ".", log = "xy",
|
| 96 |
main = "4 weeks lagged SMI stocks -- log scale", xy.lines= TRUE)
|
96 |
main = "4 weeks lagged SMI stocks -- log scale", xy.lines = TRUE)
|
| 97 |
}
|
97 |
}
|
| 98 |
\keyword{hplot}
|
98 |
\keyword{hplot}
|
| 99 |
\keyword{ts}
|
99 |
\keyword{ts}
|