\HeaderA{hexbin}{Fast hexagon binning.}{hexbin}
\begin{Description}\relax
Yet another hexagon binning routine - this one adapted from the
scagnostics package.  This is very preliminary and may not be retained.
\end{Description}
\begin{Usage}
\begin{verbatim}
hexbin(x, y, bins = 50)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] x values 
\item[\code{y}] y values 
\item[\code{bins}] The approximate number of bins, in the x direction. 
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
This implementation maps x and y to the unit square and does the binning
in that region.
\end{Details}
\begin{Value}
A list, with componentes \code{counts}, \code{xbin} and \code{ybin}.
\end{Value}
\begin{References}\relax
The scagnostics package.
\end{References}
\begin{Examples}
\begin{ExampleCode}
 x = runif(100)
 y = runif(100)
 hb = hexbin(x,y)
\end{ExampleCode}
\end{Examples}

