[R] ggplot stacked bar chart help

Ryan Garner ryan.steven.garner at gmail.com
Fri Feb 5 18:53:51 CET 2010


I'm trying to create a stacked bar chart with x=month, y=volume, and
factor=type.

volume   type   month
100        A       SEP09
200        A       OCT09
300        A       DEC09
400        B       SEP09
500        B       OCT09
600        B       DEC09
700        C       SEP09
800        C       OCT09
900        C       DEC09

Following Hadley's examples, I get 3 bars with SEP09: 3-A, 3-B, 3-C, OCT09:
3-A, 3-B, 3-C, and NOV09: 3-A, 3-B, 3-C. I need SEP09: 100-A, 400-B, 700-C,
OCT09: 200-A, 500-B, 800-C, and NOV09: 300-A, 600-B, 900-C.
-- 
View this message in context: http://n4.nabble.com/ggplot-stacked-bar-chart-help-tp1470582p1470582.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list