Re: [R] Double x grid in ggplot2

2011-06-10 Thread Dennis Murphy
This toy example works as you seem to expect: library(ggplot2) dat <- data.frame(time = factor(rep(0:59, each = 100), levels = 0:59), error = rnorm(6000)) qplot(time, error, data = dat, size = I(1), main =" title", ylab="Error (min)", xlab="Time before ON (min)", alpha=I(1

[R] Double x grid in ggplot2

2011-06-10 Thread James Rome
I am trying to overlay raw data with a boxplot as follows: pp = qplot(factor(time, levels=0:60, ordered=TRUE), error, data=dfsub, size=I(1), main =" title", ylab="Error (min)", xlab="Time before ON (min)", alpha=I(1/10), ylim=c(-30,40),geom="jitter") +