Re: [R] Plot(x,y) help

2012-11-26 Thread YAddo
Thanks Jim and Rui. -- View this message in context: http://r.789695.n4.nabble.com/Plot-x-y-help-tp4650874p4650906.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinf

Re: [R] Plot(x,y) help

2012-11-26 Thread Rui Barradas
Hello, You had a typo in the lines() instruction, the parenthesis didn't close after c(y...). Anyway, I'm not sure I understand but to have horizontal lines, just reverse the roles of x and y. (And change pch = "_" to pch = "|"). plot(y, x, type="n",axes=F, xlab="PR(95% CI)",ylab=" ") points

Re: [R] Plot(x,y) help

2012-11-26 Thread jim holtman
Try this code that uses "segments" to draw in the bars # put data into a nicer form y=c(1.73,1.30,2.30, 1.83,1.36,2.45,1.46,1.07,2.00,1.58,1.15,2.17) ym <- matrix(y , ncol = 3 , byrow = TRUE , dimnames = list(NULL, c("Val", "Lower", "Upper")) ) ym <- cbind(ym, x = 1:4) # add the x

[R] Plot(x,y) help

2012-11-26 Thread YAddo
Dear All: I would any appreciate any help with this plot I am struggling with. I have 4 estimates (95% CIs) I want to plot. I want the CI lines to be horizontal on each plotted point. I was trying to tweak some old codes (was for a vertical CI lines) into horizontal but not much dice. Many th