Re: [R] Some problems with back to back bar plots in ggplot2

2013-07-17 Thread S Ellison
> Hi, I'm making a simple population pyramid using two > back-to-back bar plots for 18 different age groups with > totals for males and females. I can run both variants without error, though both throw the same warning regarding stacking beein 'not well defined ..' However, the axis scaling in

Re: [R] Some problems with back to back bar plots in ggplot2

2013-07-17 Thread gavinr
Thanks, I've now got the plot I was after. No idea what the stacking warning is about, but it does not seem to compromise my output. Gavin. -- View this message in context: http://r.789695.n4.nabble.com/Some-problems-with-back-to-back-bar-plots-in-ggplot2-tp4671744p4671765.html Sent from the

[R] Some problems with back to back bar plots in ggplot2

2013-07-17 Thread Gavin Rudge
Hi, I'm making a simple population pyramid using two back-to-back bar plots for 18 different age groups with totals for males and females. Yesterday I achieved a fairly serviceable plot using the following. library(ggplot2) library(reshape2) library(plyr) #make sample data df<-data.frame(ag=c(1: