loess.smooth
Smooth Loess Curve
Description
Returns a list of values at which the loess curve is evaluated.
Usage
loess.smooth(x, y, span = 2/3, degree = 1, family = c("symmetric",
    "gaussian"), evaluation = 50, ...)
Arguments
| x | abscissas of points to be plotted on scatterplot. | 
| y | ordinates of points to be plotted on scatterplot.
If a point has NA for either coordinate,
it will be omitted from the calculations. | 
| span | the smoothing parameter. | 
| degree | the overall degree of the locally-fitted polynomial.
1 is locally-linear fitting and 2 is locally-quadratic fitting. | 
| family | the value is "gaussian" or
"symmetric". 
 If "gaussian", local-fitting methods
are used. 
 If "symmetric" (the default), local fitting is used together
with a robustness feature that guards against distortion
by outliers.
 | 
| evaluation | the number of values at which the loess curve is evaluated. | 
| ... | additional arguments to be passed to loess.control. | 
 
Value
returns a list with two components:
| x | the x values at which the loess curve was evaluated. | 
| y | the smoothed values. | 
See Also
Examples
x <- runif(100, -3, 3)
eps <- rnorm(100, 0, .1)
y <- sin(x) + eps
loess.smooth(x, y, span = 0.5, degree = 2)