ENellipse: Confidence ellipses

Description Usage Arguments Details Author(s) Examples

Description

This function allows to draw ellipses around the categories of a chosen variable.

Usage

1
ENellipse(matP, cluster, resampling="population", iter=500, alpha = 0.05, coord = c(1, 2), eig, cex = 1, color = NULL)

Arguments

matP

factorial coordinates from MCA

cluster

chosen categorical variable

resampling

If "population", the resampling is done within the whole dataset. If "cluster", it is done within the clusters

iter

number of iterations for the Bootstrap method, by default iter=500

alpha

the confidence level of the ellipses. By default alpha=0.05

coord

selected axes

eig

eigenvalues of the MCA

cex

graphical option: character size

color

graphical option: ellipses' colours

Details

This function can be used to draw ellipses around the centers of gravity of each cluster, when the chosen categorical variable is the variable obtained after the cluster analysis.

Author(s)

Sebastien Le [email protected]
Jerome Bouche [email protected]
Marine Cadoret [email protected]
Gwenaelle Fournier [email protected]
Olivier Fournier [email protected]
Francois Le Poder [email protected]

Examples

1
2
3
4
5
6
7
8
## Not run: 
data(tea)
res.enmca=ENMCA(tea[,1:18])
x<-res.enmca$MCA$ind$coord[,1:2]
b<-res.enmca$data[,ncol(res.enmca$data)]
ENellipse(matP=x, cluster=b, resampling="population", iter=500, alpha = 0.05, coord = c(1, 2), eig=res.enmca$MCA$eig, cex = 1, color = NULL)

## End(Not run)

EnQuireR documentation built on May 31, 2017, 3:27 a.m.

Related to ENellipse in EnQuireR...