scatter.smooth {modreg} | R Documentation |
Plot and add a smooth curve computed by loess
to a scatter plot.
scatter.smooth(x, y, span = 2/3, degree = 1,
family = c("symmetric", "gaussian"),
xlab = deparse(substitute(x)), ylab = deparse(substitute(y)),
ylim = range(y, prediction$y), evaluation = 50, ...)
loess.smooth(x, y, span = 2/3, degree = 1,
family = c("symmetric", "gaussian"), evaluation=50, ...)
x |
x coordinates for scatter plot. |
y |
y coordinates for scatter plot. |
span |
smoothness parameter for |
degree |
degree of local polynomial used. |
family |
if |
xlab |
label for x axis. |
ylab |
label for y axis. |
ylim |
the y limits of the plot. |
evaluation |
number of points at which to evaluate the smooth curve. |
... |
graphical parameters. |
loess.smooth
is an auxiliary function.
None.
B.D. Ripley
loess
data(cars)
attach(cars)
scatter.smooth(speed, dist)
detach()