plot.locfit
function generates grids of ploting points, followed
by a call to predict.locfit
. The returned object is then passed to
plot.locfit.1d
, plot.locfit.2d
or plot.locfit.3d
as appropriate.plot.locfit(x, xlim, pv, tv, mpv, mtv, deriv, se.fit, tr,
what, get.data, f3d, ...)
xlim=c(0,0,1,1)
plots over the unit square in
two dimensions. Default is bounding box of the data.numeric(0)
. See predict.locfit
documentation for more details.predict.locfit
.TRUE
, original data is added to the plot. Default: FALSE
.locfit.3d
class on the prediction object, thereby generating
a trellis style plot. Default: FALSE
, unless a tv
argument is provided.plot.locfit.1d
, plot.locfit.2d
or
plot.locfit.3d
as appropriate.locfit
, plot.locfit.1d
, plot.locfit.2d
,
plot.locfit.3d
, lines.locfit
, predict.locfit
x <- rnorm(100)
y <- dnorm(x)+rnorm(100)/5
plot(locfit(y~x),vband=T)
x <- cbind(rnorm(100),rnorm(100))
plot(locfit(~x),type="persp")
Run the code above in your browser using DataLab