Hi:

Is this what you were expecting? Calling your data set below 'data',

# order months chronologically
data$month <- ordered(data$month, levels = c('SEP09', 'OCT09', 'DEC09'))
# Plot it...
p <- ggplot(data, aes(x = month, fill = type))
p + geom_bar(aes(weight = volume), position = 'stack')

HTH,
Dennis

On Fri, Feb 5, 2010 at 9:53 AM, Ryan Garner <ryan.steven.garner@gmail.com>wrote:

>
> 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.
>
> ______________________________________________
> R-help@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.
>

	[[alternative HTML version deleted]]

