[R] a plot of stacked boxes

Richard M. Heiberger rmh at temple.edu
Sat Jun 20 00:55:36 CEST 2009


I think you are looking for mosaic()

table(df)
library(vcd)
mosaic(outcome ~ group, data=df)

Rich




More information about the R-help mailing list