[R] Problems with boxplot in ggplot2:qplot

Dimitri Shvorob dimitri.shvorob at gmail.com
Mon Feb 15 23:41:40 CET 2010


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.



More information about the R-help mailing list