1 |
x1 |
|
y1 |
|
x2 |
|
val |
|
est |
|
sm |
|
fr |
|
xlab |
|
ylab |
|
... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ##---- 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, val = median(x2), est = tmean, sm = FALSE,
fr = 0.8, xlab = "X", ylab = "Y", ...)
{
m <- cbind(x1, y1, x2)
m <- elimna(m)
x2 <- m[, 3]
flag <- (x2 < val)
x1 <- m[flag, 1]
y1 <- m[flag, 2]
x2 <- m[!flag, 1]
y2 <- m[!flag, 2]
runmean2g(x1, y1, x2, y2, fr = fr, est = est, sm = sm, xlab = xlab,
ylab = ylab, ...)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.