1 |
rs |
|
axis |
|
scale |
|
param |
|
jitter |
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 (rs, axis = 8, scale = 0.5, param = "theta", jitter = F)
{
rs[, param] <- round(rs[, param] * axis)/axis
rs <- rs[order(rs[, param]), ]
t3 <- tapply(rs[, param], rs[, param], length)
f1 <- NULL
for (i in 1:length(t3)) {
f1 <- c(f1, seq(1, t3[i]) + runif(1) * jitter)
}
rs$f1 <- (-f1 * scale)
rs$param <- rs[, param]
rownames(rs) <- rownames(rs)
return(rs[, c("param", "f1")])
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.