\HeaderA{xmap.col}{Generate a colour integer for the xmapBridge}{xmap.col}
\begin{Description}\relax
Convert an R colour into the form 0xAARRGGBB as used by the xmapBridge
\end{Description}
\begin{Usage}
\begin{verbatim}

   xmap.col(col,alpha)

\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{col}] The R colour to convert 
\item[\code{alpha}] Change the colour's alpha value to the one specified 
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
Takes one or more hex strings, possibly with an alpha value, as used by R and
converts them to an integer of the form 0xAARRGGBB to be used by the xmapBridge.
If alpha is specified, then change the colours' alpha values to this, otherwise
leave them as they were.
\end{Details}
\begin{Author}\relax
Crispin J Miller
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{xmap.plot}{xmap.plot}}\\
\code{\LinkA{xmap.plot.new}{xmap.plot.new}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
  require( RColorBrewer )
  transparent.greens <- xmap.col( brewer.pal( 5, "Greens" ), alpha=0x22 )
\end{ExampleCode}
\end{Examples}

