Sorry, I want to plot 2 lines (or pointrange like I used before) together, with confidence limits of the estimates. I want to plot another curve as I did for the first one (with qplot like you suggested). I know how to do it with ggplot *without* confidence limits:
SE<-c(0.6,0.7,0.8,0.9) OR<-c(2.745,2.103,1.665,1.311,1.189,1.009,0.852,0.7) lcl<-c(1.894,1.456,1.155,0.911,0.824,0.698,0.587,0.481) ucl<-c(4,3.05,2.411,1.905,1.723,1.465,1.24,1.025) df<-data.frame(SE, OR, lcl, ucl, Z=gl(2,4)) ggplot(data=df, aes(x=SE, y=OR, colour=Z))+ geom_line() As I said, I get 2 lines without conf. limits, which i want to add. Thank you for your reply, Sigalit. On 2/19/08, hadley wickham <[EMAIL PROTECTED]> wrote: > > > Another question: Can I add another line to the same plot with qplot? > > (like function "lines" in "plot"). > > Yes. > > (if you want more details, tell us what you're trying to do!) > > Hadley > > > -- > http://had.co.nz/ > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.