Skip to content
Prev 163397 / 398500 Next

Graphics for proportion within factor

You could see whether the stacked barchart in Sarkar's website meets  
your needs:

http://lmdvr.r-forge.r-project.org/figures/figures.html
See figure 4.5

also look at:
?prop.table

Description
This is really sweep(x, margin, margin.table(x, margin), "/") for  
newbies ....