I think this boils down to major changes in ggplot2
.
Here are a few options. The first uses points with shape='-'
for horizontal stripes. The second uses geom_errorbar
, as you used before, but through stat_summary
.
ggplot(data, aes(x=Day, y=CorrectedIntensity)) + ylim(-2.5, 0.5) + # data points geom_point(size=7, colour="royalblue3", alpha=0.30) + # +/- standard deviation stat_summary(fun.data=function(...) mean_sdl(..., mult=1), geom='errorbar', width=0.1, color='royalblue3') + # points for mean, using hyphens for point shape stat_summary(fun.y=mean, colour='royalblue3', geom='point', shape='-', size=30) + # line connecting means stat_summary(fun.y=mean, colour='royalblue3', geom='line', aes(group=1), lty=2)

ggplot(data, aes(x=Day, y=CorrectedIntensity)) + ylim(-2.5, 0.5) + # data points geom_point(size=7, colour="royalblue3", alpha=0.30) + # +/- standard deviation stat_summary(fun.data=function(...) mean_sdl(..., mult=1), geom='errorbar', width=0.1, color='royalblue3') + # lines for means, using geom=errorbar stat_summary(fun.y=mean, aes(ymin=..y.., ymax=..y..), geom='errorbar', width=0.3, color='royalblue3', size=1.25) + # line connecting means stat_summary(fun.y=mean, colour='royalblue3', geom='line', aes(group=1), lty=2)
