Re: [R] geom_bar with missing data in package ggplot

2011-11-16 Thread Aidan Corcoran
Hi Dennis, that does exactly what I needed, and the treatment of missing values is really useful. thanks for your help. Aidan On Wed, Nov 16, 2011 at 12:22 PM, Dennis Murphy wrote: > Hi: > > Here's one way, but it puts the two countries side by side rather than > stacked (I'm not a big fan of s

Re: [R] geom_bar with missing data in package ggplot

2011-11-16 Thread Dennis Murphy
Hi: Here's one way, but it puts the two countries side by side rather than stacked (I'm not a big fan of stacked bar charts except in certain contexts). The first version uses the original data, but one can see immediately that there is no distinction between NA and 0: ggplot(g, aes(x = Date, y =