\HeaderA{chisq.desc}{Display the results of a chi-square test}{chisq.desc}
\begin{Description}\relax
Color the cells of the table containing the results from the Chi-square test, 
crossing all the selected categorical variables, according to a selected threshold.
\end{Description}
\begin{Usage}
\begin{verbatim}
chisq.desc(dataset,Y,X,method="proba",print=TRUE,report=FALSE,language="english")
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{dataset}] a dataframe
\item[\code{Y}] first group of variable
\item[\code{X}] second group of variable (to be crossed with the first one)
\item[\code{method}] if "proba" : the colour depends on the p-values given by the hypergeometric law. If "mean" : the colour depends on the value of the contribution to the chi-square distance 
\item[\code{print}] a logical value. If TRUE, tables of the chi-square distance are printed with cells coloured according to the chosen threshold
\item[\code{report}] a logical value.  If TRUE, a report is automatically generated
\item[\code{language}] english or french
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
This function is useful when comparing categorical variables.
If report=TRUE, a directory named "EnQuireR" is created in your working directory (which can be known thanks to the getwd() function). This directory contains the final pdf report and also the teX file used to produce it.
\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)
chisq.desc(tea,c(1,2),c(3,4))

chisq.desc(tea,c(1,2),c(3,4),report=TRUE)
## End(Not run)
\end{ExampleCode}
\end{Examples}

