[R] Ggplot barchart drops factor levels: how to show them with zero counts?

R. Michael Weylandt michael.weylandt at gmail.com
Fri Mar 16 11:38:42 CET 2012

I can reproduce the OP's problem with ggplot 0.9.0 but I don't know
how to solve it: perhaps you should take this to the ggplot2 mailing
list: https://groups.google.com/group/ggplot2?pli=1


On Fri, Mar 16, 2012 at 4:17 AM, Bart6114 <bartsmeets86 at gmail.com> wrote:
> To visualize my problem a little; see this screenshot
> http://i40.tinypic.com/fodsm0.png http://i40.tinypic.com/fodsm0.png .
> So I would like factor level 4 to show up but without a bar (zero counts).
> Thanks
> --
> View this message in context: http://r.789695.n4.nabble.com/Ggplot-barchart-drops-factor-levels-how-to-show-them-with-zero-counts-tp4475417p4477563.html
> Sent from the R help mailing list archive at Nabble.com.
>        [[alternative HTML version deleted]]
> ______________________________________________
> 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.

More information about the R-help mailing list