Elmer Wix
2010-Jan-05 03:00 UTC
[R] Bar plots with stacked and grouped (juxtaposed) bars together
Using barplot, I can generate stacked bars if I pass beside=FALSE. I can generate grouped (juxtaposed) bars if I pass beside=TRUE. How can I generate stacked and grouped bars together?
John Kane
2010-Jan-05 16:25 UTC
[R] Bar plots with stacked and grouped (juxtaposed) bars together
I have the feeling that you can do this with ggplot2 but why? You are likely to be much better off using a dotchart. ?dotchart --- On Mon, 1/4/10, Elmer Wix <elmer.cabekaziruronometu.wix at gmail.com> wrote:> From: Elmer Wix <elmer.cabekaziruronometu.wix at gmail.com> > Subject: [R] Bar plots with stacked and grouped (juxtaposed) bars together > To: r-help at r-project.org > Received: Monday, January 4, 2010, 10:00 PM > Using barplot, I can generate stacked > bars if I pass beside=FALSE. > > I can generate grouped (juxtaposed) bars if I pass > beside=TRUE. > > How can I generate stacked and grouped bars together? > > ______________________________________________ > R-help at r-project.org > mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, > reproducible code. >