\HeaderA{mosaicdata}{Mosaic data}{mosaicdata}
\aliasA{plotmosaicdata}{mosaicdata}{plotmosaicdata}
\keyword{hplot}{mosaicdata}
\keyword{internal}{mosaicdata}
\begin{Description}\relax
Construct a data frame for producing a mosaic plot
\end{Description}
\begin{Usage}
\begin{verbatim}mosaicdata(df, direction, offset, xrange=c(0,1), yrange=c(0,1))\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{df}] data frame, with values in last column
\item[\code{direction}] character vector of direction ("v" or "h") to split in
\item[\code{offset}] vector of offsets to use
\item[\code{xrange}] xrange
\item[\code{yrange}] yrange
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
Take a data frame, with last column value and then
recursively create a data frame that reflects the position of each cell
\end{Details}
\begin{Author}\relax
Hadley Wickham <h.wickham@gmail.com>
\end{Author}
\begin{Examples}
\begin{ExampleCode}\end{ExampleCode}
\end{Examples}

