The metafor Package

A Meta-Analysis Package for R

User Tools

Site Tools


plots:cumulative_forest_plot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revisionBoth sides next revision
plots:cumulative_forest_plot [2017/04/23 16:57] – external edit 127.0.0.1plots:cumulative_forest_plot [2020/03/19 13:28] Wolfgang Viechtbauer
Line 27: Line 27:
  
 ### cumulative forest plot ### cumulative forest plot
-forest(tmp, xlim=c(-4,2), at=log(c(0.125, 0.25, 0.5, 1, 2)),  +forest(tmp, xlim=c(-4,2), at=log(c(0.125, 0.25, 0.5, 1, 2)), 
-       atransf=exp, digits=c(2,3), cex=0.75) +       atransf=exp, digits=c(2,3), cex=0.75, header="Author(s) and Year")
- +
-### switch to bold font +
-par(cex=0.75, font=2) +
- +
-### add column headings to the plot +
-text(-4, 15, "Author(s) and Year",  pos=4) +
-text( 2, 15, "Risk Ratio [95% CI]", pos=2)+
 </code> </code>
  
plots/cumulative_forest_plot.txt · Last modified: 2023/08/19 13:38 by Wolfgang Viechtbauer