\HeaderA{ENellipse}{Confidence ellipses}{ENellipse}
\begin{Description}\relax
This function allows to draw ellipses around the categories of a chosen variable.
\end{Description}
\begin{Usage}
\begin{verbatim}
ENellipse(matP, cluster, resampling="population", iter=500, alpha = 0.05, coord = c(1, 2), eig, cex = 1, color = NULL)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{matP}] factorial coordinates from MCA
\item[\code{cluster}] chosen categorical variable
\item[\code{resampling}] If "population", the resampling is done within the whole dataset. If "cluster", it is done within the clusters
\item[\code{iter}] number of iterations for the Bootstrap method, by default iter=500
\item[\code{alpha}] the confidence level of the ellipses. By default alpha=0.05
\item[\code{coord}] selected axes
\item[\code{eig}] eigenvalues of the MCA
\item[\code{cex}] graphical option: character size
\item[\code{color}] graphical option: ellipses' colours
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
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.
\end{Details}
\begin{Author}\relax
Jerome Bouche \email{jerome.bouche@yahoo.fr} \\
Marine Cadoret \email{marine.cadoret@agrocampus-ouest.fr} \\
Gwenaelle Fournier \email{gwenaelle.fournier@gmail.com} \\
Olivier Fournier \email{olivier.fournier76@gmail.com} \\
Francois Le Poder \email{francois.lepoder@gmail.com}
\end{Author}
\begin{Examples}
\begin{ExampleCode}
## 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)
\end{ExampleCode}
\end{Examples}

