The R Project SVN R

Rev

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

Rev 68948 Rev 77336
Line 10... Line 10...
10
  An example of a simple useful \code{panel} function to be used as
10
  An example of a simple useful \code{panel} function to be used as
11
  argument in e.g., \code{\link{coplot}} or \code{\link{pairs}}.
11
  argument in e.g., \code{\link{coplot}} or \code{\link{pairs}}.
12
}
12
}
13
\usage{
13
\usage{
14
panel.smooth(x, y, col = par("col"), bg = NA, pch = par("pch"),
14
panel.smooth(x, y, col = par("col"), bg = NA, pch = par("pch"),
15
             cex = 1, col.smooth = "red", span = 2/3, iter = 3,
15
             cex = 1, col.smooth = 2, span = 2/3, iter = 3,
16
             \dots)
16
             \dots)
17
}
17
}
18
\arguments{
18
\arguments{
19
  \item{x, y}{numeric vectors of the same length}
19
  \item{x, y}{numeric vectors of the same length}
20
  \item{col, bg, pch, cex}{numeric or character codes for the color(s),
20
  \item{col, bg, pch, cex}{numeric or character codes for the color(s),
Line 32... Line 32...
32
  is typically used;
32
  is typically used;
33
  \code{\link{lowess}} which does the smoothing.
33
  \code{\link{lowess}} which does the smoothing.
34
}
34
}
35
\examples{
35
\examples{
36
pairs(swiss, panel = panel.smooth, pch = ".")  # emphasize the smooths
36
pairs(swiss, panel = panel.smooth, pch = ".")  # emphasize the smooths
37
pairs(swiss, panel = panel.smooth, lwd = 2, cex = 1.5, col = "blue")  # hmm...
37
pairs(swiss, panel = panel.smooth, lwd = 2, cex = 1.5, col = 4)  # hmm...
38
}
38
}
39
\keyword{hplot}
39
\keyword{hplot}
40
\keyword{dplot}
40
\keyword{dplot}