Re: [R] color query in mosaic in package vcd

2013-02-08 Thread David Meyer
Thanks, fixed upstream. David On 2013-02-08 07:20, Achim Zeileis wrote: On Fri, 8 Feb 2013, Richard M. Heiberger wrote: require(vcd) mosaic(matrix(1:6, 2, 3), gp=gpar(fill=c("red","gray","blue")), main="three colors in each row") mosaic(matrix(1:3, 1, 3), gp=gpar(fill=c("red","gray","blue")),

Re: [R] color query in mosaic in package vcd

2013-02-07 Thread Achim Zeileis
On Fri, 8 Feb 2013, Richard M. Heiberger wrote: require(vcd) mosaic(matrix(1:6, 2, 3), gp=gpar(fill=c("red","gray","blue")), main="three colors in each row") mosaic(matrix(1:3, 1, 3), gp=gpar(fill=c("red","gray","blue")), main="only one color in each row") I anticipated three colors in the secon

[R] color query in mosaic in package vcd

2013-02-07 Thread Richard M. Heiberger
require(vcd) mosaic(matrix(1:6, 2, 3), gp=gpar(fill=c("red","gray","blue")), main="three colors in each row") mosaic(matrix(1:3, 1, 3), gp=gpar(fill=c("red","gray","blue")), main="only one color in each row") I anticipated three colors in the second plot. My guess is that there is a matrix subsc