Re: [R] A way to lock down the order of bars for ggplot dodgedhistogram

2009-02-06 Thread ONKELINX, Thierry
Hmm, I had not tested my solution. But that used to work. But I'm getting the same result as you do. So maybe this is a bug in ggplot2. Is it, Hadley? Thierry ir. Thierry Onkelinx Instituut voor natuur- en

Re: [R] A way to lock down the order of bars for ggplot dodgedhistogram

2009-02-06 Thread hadley wickham
Yes, I think it is. I'll add it to my to do list. Hadley On Fri, Feb 6, 2009 at 3:30 AM, ONKELINX, Thierry thierry.onkel...@inbo.be wrote: Hmm, I had not tested my solution. But that used to work. But I'm getting the same result as you do. So maybe this is a bug in ggplot2. Is it, Hadley?

Re: [R] A way to lock down the order of bars for ggplot dodgedhistogram

2009-02-05 Thread ONKELINX, Thierry
Dear Jason, Convert Person to a factor with the levels in the order that you want. Group_df$Person - factor(Group_df$Person, levels = c(Them, You, Me)) HTH, Thierry ir. Thierry Onkelinx Instituut voor natuur- en

Re: [R] A way to lock down the order of bars for ggplot dodgedhistogram

2009-02-05 Thread Jason Rupert
Thierry,   Thank you for such a quick response.   I changed the code, but I seem to get the same response.  Ugh.  Maybe I am missing a step.  Thank you again for any feedback.   Me_df-data.frame(Data = c(1:15), Person = Me) You_df-data.frame(Data = c(10:20), Person = You)