ENellipse {EnQuireR} | R Documentation

## Confidence ellipses

### Description

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

### Usage

    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)

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

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

[Package EnQuireR version 0.09 Index]