plot.locfit Plot an object of class locfit. plot.locfit


plot.locfit(x, xlim, pv, tv, m, mtv, band, deriv,, tr,
what,, f3d, ...)


locfit object.
Plotting limits. Eg. xlim=c(0,0,1,1) plots over the unit square in two dimensions. Default is bounding box of the data.
Panel variables, to be varied within each panel of a plot. May be specified as a character vector, or variable numbers. There must be one or two panel variables; default is all variables in one or two dimensions; Variable 1 in three or more dimensions. May by specified using either variable numbers or names.
Trellis variables, to be varied from panel to panel of the plot.
Controls the plot resolution (within panels, for trellis displays). Default is 100 points in one dimension; 40 points (per dimension) in two or more dimensions.
Number of points for trellis variables; default 6.
Type of confidence bands to add to the plot. Default is "none". Other choices include "global" for bands using a global variance estimate; "local" for bands using a local variance estimate and "pred" for prediction bands (at present, using a global variance estimate). To obtain the global variance estimate for a fit, use rv. This can be changed with rv<-. Confidence bands, by default, are 95 To change the critical value or confidence level, or to obtain simultaneous instead of pointwise confidence, the critical value stored on the fit must be changed. See the kappa0 and crit functions.
Transformation function to use for plotting. Default is the inverse link function, or the identity function if derivatives are requested.
What to plot. See predict.locfit.
If TRUE, original data is added to the plot. Default: FALSE.
Force the 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.
Other arguments to plot.locfit.1d, plot.locfit.2d or plot.locfit.3d as appropriate.


The 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.


x <- rnorm(100)
y <- dnorm(x)+rnorm(100)/5
x <- cbind(rnorm(100),rnorm(100))

See Also:

locfit, plot.locfit.1d, plot.locfit.2d, plot.locfit.3d, lines.locfit, predict.locfit, preplot.locfit

Key Words:

  Locfit Home   Help Index  

Built: Sat Aug 4 07:44:53 EDT 2001
Copyright © 2000, Lucent Technologies
Author: Catherine Loader