loess
and lets one make 2D or 3D smoother plots using loess
specifications.loess.surf(Y, X, span = 0.75, degree = 1, family = "gaussian", phi = 20,
theta = 50, xlab = "X", ylab = "Y", zlab = "Fit", line.col = 1,
line.type = 1, scale = TRUE, duplicate = "error", expand = 0.5, ...)
degree = 1
or quadratic models degree = 2
are to be applied to each local neighborhood."gaussian"
is fitting with least squares. Fitting with Tukey's biweight M-Estimator is used if family = "symmetric"
.persp
,phi
provides the colatitude viewing angle.persp
theta
gives the azimuthmal direction .persp
If scale is TRUE
the x, y and z coordinates are transformed separately. If scale is FALSE
the coordinates are scaled so that aspect ratios are retained.interp
from library akima
. Consists of a character string indicating how to handle duplicate data points. The default, duplicate = "error"
produces an error message.persp
, a expansion factor applied to the z coordinates.plot
loess
X1<-sort(rnorm(100))
X2<-rexp(100)
Y<-rgamma(100,1,2)
loess.surf(Y,cbind(X1,X2))
Run the code above in your browser using DataLab