library(sqldf) library(ggplot2) t = data.frame(t = seq.Date(as.Date("2009-01-01"), to = as.Date("2009-12-01"), by = "month")) x = data.frame(x = rnorm(5)) df = sqldf("select * from t, x")
qplot(factor(df$t), df$x, geom = "boxplot") + theme_bw() qplot(factor(df$t), df$x, geom = "boxplot") + theme_bw() + scale_x_date(major = "months", minor = "weeks", format = "%b") qplot(factor(df$t), df$x, geom = "boxplot") + theme_bw() + scale_x_date(format = "%b") -- View this message in context: http://n4.nabble.com/Problems-with-boxplot-in-ggplot2-qplot-tp1555338p1556745.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.