Skip to content
Prev 311998 / 398502 Next

Plot(x,y) help

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(y[ptidx],x[ptidx], pch=19,cex=4.5)
points(y[lciidx],x[lciidx], pch="|",cex=4.5)
points(y[uciidx],x[uciidx], pch="|",cex=4.5)
box()

for(i in 1:4){
     lines(c(y[lciidx[i]], y[uciidx[i]]),
         c(x[lciidx[i]], x[uciidx[i]]), lwd=4,cex=4.5)
}


Hope this helps,

Rui Barradas
Em 26-11-2012 18:31, YAddo escreveu: