\HeaderA{ENbarplot}{Plots of categorical variables}{ENbarplot}
\keyword{univar}{ENbarplot}
\begin{Description}\relax
This function allows to obtain barplots either sorted by frequency or by alphabetical order. 
The percentage of missing values is indicated at the top of the graphical device.
\end{Description}
\begin{Usage}
\begin{verbatim}
ENbarplot(dataset,X,spl=FALSE,numr=NULL,numc=NULL,report=FALSE)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{dataset}] a data frame
\item[\code{X}] the numbers of the variables to be plotted
\item[\code{spl}] if TRUE, the barplots will be sorted per length
\item[\code{numr}] the number of plots per row (by default 2)
\item[\code{numc}] the number of plots per column (by default 2)
\item[\code{report}] a logical value. If TRUE, a report is automatically generated
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
The colour changes depending on the number of individuals of the category. 
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{SeeAlso}\relax
\code{\LinkA{XvsYbarplot}{XvsYbarplot}} which gives barplots of a categorical variable depending on the categoricals of another categorical variable.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
## Not run: 
data(tea)
ENbarplot(tea,c(18,20,21,23))

ENbarplot(tea,c(18,20,21,23),report=TRUE)
## End(Not run)
\end{ExampleCode}
\end{Examples}

