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 sebastien.le@agrocampus-ouest.fr
Jerome Bouche jerome.bouche@yahoo.fr
Marine Cadoret marine.cadoret@agrocampus-ouest.fr
Gwenaelle Fournier gwenaelle.fournier@gmail.com
Olivier Fournier olivier.fournier76@gmail.com
Francois Le Poder francois.lepoder@gmail.com

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 2, 2019, 5:24 p.m.

Related to ENellipse in EnQuireR...