The R Project SVN R

Rev

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

Rev 27625 Rev 27733
Line 75... Line 75...
75
  \emph{The New S Language}.
75
  \emph{The New S Language}.
76
  Wadsworth \& Brooks/Cole.
76
  Wadsworth \& Brooks/Cole.
77
}
77
}
78
\examples{
78
\examples{
79
x <- 1:10
79
x <- 1:10
80
y <- stats::rnorm(10)
80
y <- rnorm(10)
81
par(mfrow = c(2,1))
81
par(mfrow = c(2,1))
82
plot(x, y, main = "approx(.) and approxfun(.)")
82
plot(x, y, main = "approx(.) and approxfun(.)")
83
points(approx(x, y), col = 2, pch = "*")
83
points(approx(x, y), col = 2, pch = "*")
84
points(approx(x, y, method = "constant"), col = 4, pch = "*")
84
points(approx(x, y, method = "constant"), col = 4, pch = "*")
85
 
85