Hi, Thanks for your speedy reply! The file is pretty big (I have 18,000 datapoints), there is not enough room on the r screen for the entire output so I have just cut out a few lines from the end of the dput . I dont know if that helps?
X <-(12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L, 12L), .Label = c("01,2011", "02,2011", "03,2011", "04,2011", "05,2010", "06,2010", "07,2010", "08,2010", "09,2010", "10,2010", "11,2010", "12,2010"), class = "factor")), .Names = c("ID", "Temp", "Date.Time", "Month.Year", "Month", "Week", "Shortdate", "MY"), row.names = c(NA, -18631L), class = "data.frame")) my ggplot code I have tried is Plot1<-ggplot(data=Great,aes(Great$Month.Year,Great$Temp))+ geom_boxplot() I dont know if that makes it any clearer Phil -- View this message in context: http://r.789695.n4.nabble.com/ggplot2-month-and-year-boxplot-x-axis-order-problem-tp3623029p3623230.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@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.