Skip to content
Prev 66702 / 398525 Next

Mosaicplot with different colors

On Tue, 29 Mar 2005, Jan Sabee wrote:

            
You don't see very much in that plot, do you? 16 observations is not too
much for 6-way information.
Do you want to have a color code which codes all three variables at the
same time? I wouldn't have a straightforward solution for that. But if you
want to shade with respect to a single variable, that might be possible.
You can use
  mosaicplot(mytable, col = ...)
and shade with respect to the last margin added.
We have a much more flexible implementation of mosaicplots (written in
grid) which will (hopefully) soon be released that allows the
specification of arbitrary color patterns in mosaicplots. If you're
interested, contact me offlist and we'll send you a devel-snapshot.
Z