\HeaderA{PosteriorMode}{Map of mode of posterior distribution of population membership}{PosteriorMode}
\begin{Description}\relax
Plots a map giving  the modal population as a
color code for each pixel.
\end{Description}
\begin{Usage}
\begin{verbatim}
PosteriorMode(coordinates,path.mcmc,write=FALSE,plotit=TRUE,
                          printit=FALSE,file=NULL,main.title=NULL)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{coordinates}] Spatial coordinates of individuals. A matrix with 2
columns and one line per individual.
\item[\code{path.mcmc}] Path to output files directory 
\item[\code{write}] Logical: if TRUE the modal class of each individual is
written in a plain ascci file named posterior.mode.txt
\item[\code{plotit}] Logical: if TRUE the map is plotted
\item[\code{printit}] Logical : if TRUE, figures are also printed
\item[\code{file}] Character : Path to file where figures
should be printed
\item[\code{main.title}] Character : Title to appear on top of the graphic
\end{ldescription}
\end{Arguments}
\begin{Author}\relax
Gilles Guillot
\end{Author}
\begin{References}\relax
G. Guillot, Estoup, A., Mortier, F. Cosson, J.F. A spatial statistical
model for landscape genetics. Genetics, 170, 1261-1280, 2005.

G. Guillot, Mortier, F., Estoup, A. Geneland : A program for landscape
genetics. Molecular Ecology Notes, 5, 712-715, 2005.
\end{References}

