[R] ggplot2 month and year boxplot x axis order problem

philipharrison pharriso at uwaterloo.ca
Sat Jun 25 17:11:53 CEST 2011


Hi,

Thanks, although I dont think it was the Date.Time variable that was the
problem because my x variable was Month.Year. 

I realise now that this month variable was a factor and I changed the order
of the factor using the following :

fish$MonthYr<-factor(fish$MOYR,levels=c("05,2010","06,2010","07,2010","08,2010","09,2010","10,2010","11,2010","12,2010","01,2011","02,2011","03,2011","04,2011"))

This seems to have ordered my x axis (factors)in the correct fashion.

Thanks again for your help

Phil

--
View this message in context: http://r.789695.n4.nabble.com/ggplot2-month-and-year-boxplot-x-axis-order-problem-tp3623029p3624680.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list