Re: [R] plain shading (not residuals) in mosaic plot

2006-07-20 Thread Kie Zuraw
Thank you very much, Gabor Grothendieck and Muhammad Subianto. Both of these work perfectly. I think I was misunderstanding gp and gpar() before. Again, thank you both. -KZ Quoting Muhammad Subianto [EMAIL PROTECTED]: Maybe like this: mosaic(allmorph, direction = v, pop = FALSE,

Re: [R] plain shading (not residuals) in mosaic plot

2006-07-20 Thread Achim Zeileis
On Thu, 20 Jul 2006, Kie Zuraw wrote: Thank you very much, Gabor Grothendieck and Muhammad Subianto. Both of these work perfectly. I think I was misunderstanding gp and gpar() before. Again, thank you both. Two further additions to this: Maybe like this: mosaic(allmorph, direction = v,

[R] plain shading (not residuals) in mosaic plot

2006-07-19 Thread Kie Zuraw
Hello. I've been using R for a couple of months and enjoying it a lot. This is my first post to R-help. I'm using the vcd package to make mosaic plots with labels on the tiles indicating the number of items in each cell. For example, I've made this plot: allmorph-structure(c(10, 26, 17,

Re: [R] plain shading (not residuals) in mosaic plot

2006-07-19 Thread Gabor Grothendieck
If you look at ?mosaic the ... argument says it gets passed to strucplot and looking at ?strucplot we see it accepts a gp= arg so try this (same as your plus gp= arg): cols - c(grey(0.8),grey(0.4)) mosaic(allmorph, direction = v, pop = FALSE, gp = list(col = cols)) On 7/19/06, Kie Zuraw [EMAIL

Re: [R] plain shading (not residuals) in mosaic plot

2006-07-19 Thread Muhammad Subianto
Maybe like this: mosaic(allmorph, direction = v, pop = FALSE, gp=gpar(fill=c(grey(0.8),grey(0.4 Best, Muhammad Subianto On 7/19/06, Gabor Grothendieck [EMAIL PROTECTED] wrote: If you look at ?mosaic the ... argument says it gets passed to strucplot and looking at ?strucplot we see it

Re: [R] plain shading (not residuals) in mosaic plot

2006-07-19 Thread Muhammad Subianto
Maybe like this: mosaic(allmorph, direction = v, pop = FALSE, gp=gpar(fill=c(grey(0.8),grey(0.4 Best, Muhammad Subianto On 7/19/06, Gabor Grothendieck [EMAIL PROTECTED] wrote: If you look at ?mosaic the ... argument says it gets passed to strucplot and looking at ?strucplot we see it