Plot_quanti:

Usage Arguments Examples

View source: R/Plot_quanti.R

Usage

1
Plot_quanti(Dataquanti, Em_results, all = TRUE)

Arguments

Dataquanti
Em_results
all

Examples

 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)
    }
  }

SaraTouzani/EM documentation built on Dec. 16, 2019, 12:31 a.m.