\HeaderA{mdf}{Mosaic plot}{mdf}
\keyword{internal}{mdf}
\begin{Description}\relax
\end{Description}
\begin{Usage}
\begin{verbatim}mdf(formula=~., df, direction, offset, xrange=c(0,1), yrange=c(0,1))\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{formula}] 
\item[\code{df}] 
\item[\code{direction}] 
\item[\code{offset}] 
\item[\code{xrange}] 
\item[\code{yrange}] 
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
\end{Details}
\begin{Author}\relax
Hadley Wickham <h.wickham@gmail.com>
\end{Author}
\begin{Examples}
\begin{ExampleCode}library(grid)
tt <- as.data.frame(Titanic)
mdf(~ Class, tt)  # counts
mdf(Freq ~ Class, tt) # with a weighting variable
mdf(Freq ~ Class + Sex + Age, tt)
mdf(Freq ~ Class + Sex + Age, tt, direction=c("v","h","v"))\end{ExampleCode}
\end{Examples}

