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

Both sides previous revision Previous revision
plots:cumulative_forest_plot [2020/06/03 08:36]
Wolfgang Viechtbauer [Code]
plots:cumulative_forest_plot [2021/03/29 19:50] (current)
Wolfgang Viechtbauer
Line 21: Line 21:
  
 ### cumulative meta-analysis (in the order of publication year) ### cumulative meta-analysis (in the order of publication year)
-tmp <- cumul(res, order=order(dat$year))+tmp <- cumul(res, order=dat$year)
  
 ### 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, header="Author(s) and Year")+       atransf=exp, digits=c(2L,3L), cex=0.75, header="Author(s) and Year")
 </code> </code>
  
plots/cumulative_forest_plot.txt ยท Last modified: 2021/03/29 19:50 by Wolfgang Viechtbauer