plot.locfit
function generates grids of ploting points, followed
by a call to preplot.locfit
. The returned object is then
passed to plot.locfit.1d
, plot.locfit.2d
or
plot.locfit.3d
as appropriate.## S3 method for class 'locfit':
plot(x, xlim, pv, tv, m, mtv=6, band="none", tr=NULL,
what = "coef", get.data=FALSE, f3d=(d == 2) && (length(tv) > 0), ...)
xlim=c(0,0,1,1)
plots over the unit square in
two dimensions. Default is bounding box of the data."none"
. Other
choices include "global"
for bands using a global variance estimate;
"local"
for bands using a local variance estimate and "pred"
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. Not available in R.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
,
preplot.locfit
x <- rnorm(100)
y <- dnorm(x) + rnorm(100) / 5
plot(locfit(y~x), band="global")
x <- cbind(rnorm(100), rnorm(100))
plot(locfit(~x), type="persp")
Run the code above in your browser using DataLab