[R] forest plot

Adaikalavan Ramasamy a.ramasamy at imperial.ac.uk
Tue Aug 24 17:05:14 CEST 2010


You can also do meta.summaries() - from rmeta package - followed by a 
plot() on the resulting object.

Or for a much more flexible plot try forestplot() function, also from 
rmeta package, but this requires a bit of work to set it up.

Regards, Adai


On 24/08/2010 05:50, C.H. wrote:
> The correct command for forest plot should be "plot" (instead of
> "forest") if you are using metagen from meta package.
>
> For help:
>
> ?plot.meta
>
> On Tue, Aug 24, 2010 at 11:03 AM, zhangweiwei<weiweizhang56 at hotmail.com>  wrote:
>>
>> Dear Sir or Madam,
>>
>>
>>
>> I am trying to plot forest plot. I extracted odds ratio and their corresponding 95% confidence interval from papers, then I calculated the log(OR) and standard error using the following command
>>
>>   OR<-metagen(logOR,selogOR,sm="OR")
>>
>> forest(OR,comb.fixed=TRUE,comb.random=TRUE,digits=2)
>>
>>
>>
>> However, it does not produce a forest plot.  Can someone kindly help? Thank you in advance.
>>
>>
>>
>> Best wishes
>>
>> weiwei
>>
>>
>>         [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-help at 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.
>>
>
>
>



More information about the R-help mailing list