How to make a graph of clustered boolean variables in R?
<p>I have a dataset which consists entirely of boolean variables. Exactly like the transformed animal dataset below, only with many more columns.</p>

<pre><code># http://stats.stackexchange.com/questions/27323/cluster-analysis-of-boolean-vectors-in-r
library(cluster)
head(mona(animals)[[1]])

    war fly ver end gro hai
ant   0   0   0   0   1   0
bee   0   1   0   0   1   1
cat   1   0   1   0   0   1
cpl   0   0   0   0   0   1
chi   1   0   1   1   1   1
cow   1   0   1   0   1   1
</code></pre>

<p>The goal is to rearrange the rows in such a way that groupings of similar membership patterns are easier to identify visually.</p>

<p>I figured some kind of clustering algorithm would probably be the way to go but I'm not sure what functions to use or how to go about it exactly.</p>

<p>The table would ideally be graphed as a kind of checkerboard. With shaded squares for whether each point is true or false.</p>