1 | Plot_quanti(Dataquanti, Em_results, all = TRUE)
|
Dataquanti |
|
Em_results |
|
all |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ##---- 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 (Dataquanti, Em_results, all = TRUE)
{
tkx <- Em_results[[length(Em_results)]][["part_MAP"]]
Y <- apply(tkx, MARGIN = 1, which.max)
if (all) {
pairs.panels(Dataquanti, gap = 0, bg = Y, pch = 21)
}
else {
i <- 1
while (i < ((ncol(Dataquanti)) - 6)) {
pairs.panels(Dataquanti[, i:(i + 5)], gap = 0, bg = Y,
pch = 21)
i <- i + 6
}
pairs.panels(Dataquanti[, i:ncol(Dataquanti)], gap = 0,
bg = Y, pch = 21)
}
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.