Re: [R] Confidence bands in ggplot2

2011-07-07 Thread Abhijit Dasgupta
It's basically a question of layering, and the order in which the layers are drawn. Draw the pointranges first and then the points: qplot(x=as.factor(sch), y=est, ymin=lower.95ci, ymax=upper.95ci, geom='pointrange')+ geom_point(aes(x=as.factor(sch), y=est), color='red')+... On Jul 7, 20

Re: [R] Confidence bands in ggplot2

2011-07-07 Thread Christopher Desjardins
Thanks that worked perfectly. One thing if I may. Is it possible to make the center dot red and the lines connecting the dots black? Thanks, Chris On Jul 7, 2011, at 5:10 PM, Abhijit Dasgupta, PhD wrote: > You can easily do this by: > > qplot(x=as.factor(sch),y=est, geom='point', colour='red'

Re: [R] Confidence bands in ggplot2

2011-07-07 Thread Abhijit Dasgupta, PhD
You can easily do this by: qplot(x=as.factor(sch),y=est, geom='point', colour='red') + geom_pointrange(aes(x=as.factor(sch), y=est, ymin=lower.95ci, ymax=upper.95ci))+ xlab('School') + ylab("Value-added")+theme_bw() On 07/07/2011 05:55 PM, Christopher Desjardins wrote: Hi, I have the followi