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
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") +
2 matches
Mail list logo