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

Bart6114 bartsmeets86 at gmail.com
Thu Mar 15 18:46:38 CET 2012


Thanks for the fast reply.

I'm using ggplot2 (it was a typo in my code example). However, using exactly
the same example as I mentioned before, it only shows the bars for cyl=6&8.

How can the behaviour be different on differing machines? I just checked for
updates and I have the latest ggplot2.

Thanks,
Bart

 

--
View this message in context: http://r.789695.n4.nabble.com/Ggplot-barchart-drops-factor-levels-how-to-show-them-with-zero-counts-tp4475417p4475788.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list