loess.surf {asbio} | R Documentation |
The function serves as wrapper for 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, ...)
Y |
A numeric response vector. |
X |
A numeric explanatory vector or a two column matrix for 3D smooths. |
span |
Span parameter, i.e. the size of the local neighborhood. |
degree |
Indicates whether linear |
family |
Type of error distribution to be optimized in fitting. The default, |
phi |
Parameter from |
theta |
Parameter from |
xlab |
X-axis label. |
ylab |
Y-axis label. |
zlab |
Z-axis label |
line.col |
Color of loess fit line. |
line.type |
Line type for loess fit. |
scale |
Logical from |
duplicate |
Argument from |
expand |
Argument from |
... |
Additional arguments from |
Output is a 2D or 3D smooth plot.
Ken Aho
Wilcox, R. R. (2005) Introduction to Robust Estimation and Hypothesis Testing, Second Edition. Elsevier, Burlington, MA.
X1<-sort(rnorm(100)) X2<-rexp(100) Y<-rgamma(100,1,2) loess.surf(Y,cbind(X1,X2))