\HeaderA{ggfluctuation}{Fluctuation plot}{ggfluctuation}
\keyword{hplot}{ggfluctuation}
\begin{Description}\relax
Create a fluctuation plot.
\end{Description}
\begin{Usage}
\begin{verbatim}ggfluctuation(table, type="size", floor=0, ceiling=max(table$freq, na.rm=TRUE))\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{table}] a table of values, or a data frame with three columns, the last column being frequency
\item[\code{type}] size, or colour to create traditional heatmap
\item[\code{floor}] don't display cells smaller than this value
\item[\code{ceiling}] 
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
A fluctutation diagram is a graphical representation of a contingency
table.  This fuction currently only supports 2D contingency tabless
but extension to more should be relatively straightforward.

With the default size fluctuation diagram, area is proportional to the
count (length of sides proportional to sqrt(count))
\end{Details}
\begin{Author}\relax
Hadley Wickham <h.wickham@gmail.com>
\end{Author}
\begin{Examples}
\begin{ExampleCode}ggfluctuation(table(action=movies$Action, comedy=movies$Comedy))
ggfluctuation(table(action=movies$Action, rating=movies$mpaa))
ggfluctuation(table(action=movies$Action, comedy=movies$Comedy), type="colour")
ggfluctuation(table(warpbreaks[,c(1,3)]))\end{ExampleCode}
\end{Examples}

