1 |
x1 |
|
y1 |
|
x2 |
|
y2 |
|
f |
|
SCAT |
|
xlab |
|
ylab |
|
eout |
|
xout |
|
... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ##---- Should be DIRECTLY executable !! ----
##-- ==> Define data, use random,
##-- or do help(data=index) for the standard data sets.
## The function is currently defined as
function (x1, y1, x2, y2, f = 2/3, SCAT = TRUE, xlab = "x", ylab = "y",
eout = FALSE, xout = FALSE, ...)
{
m <- elimna(cbind(x1, y1))
x1 <- m[, 1]
y1 <- m[, 2]
m <- elimna(cbind(x2, y2))
x2 <- m[, 1]
y2 <- m[, 2]
plot(c(x1, x2), c(y1, y2), xlab = xlab, ylab = ylab)
lines(lowess(x1, y1, f = f))
lines(lowess(x2, y2, f = f))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.