[R] Forestplot

francogrex francogrex at mail.com
Fri Dec 21 21:35:29 CET 2007

Answering my own query here's a solution (if any reader was curious):

CI.H <- mean+z*sqrt(std) # Calculate upper CI 
CI.L <- mean-z*sqrt(std) # Calculate lower CI 
ylab="",xlab="mean & CIs",main="Forest plot")
arrows(mean,1:length(mean),CI.H,1:length(mean), angle=90,length=0.05)
arrows(mean,1:length(mean),CI.L,1:length(mean), angle=90,length=0.05)

francogrex wrote:
> I know there is a function forestplot from rmeta package and also the
> plot.meta from the meta package and maybe others, but they are rather
> complicated with extra plot parameters that I do not need and also they
> process only objects created with other package functions. 
> But I wonder if anyone has a much simpler function using the basic plot to
> make a forestplot with only a median (or mean) and just the confidence
> intervals...

View this message in context: http://www.nabble.com/Forestplot-tp14404133p14461981.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list