The metafor Package

A Meta-Analysis Package for R

User Tools

Site Tools


plots:forest_plot_with_subgroups

Differences

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

Link to this comparison view

Next revisionBoth sides next revision
plots:forest_plot_with_subgroups [2017/04/24 15:51] – external edit 127.0.0.1plots:forest_plot_with_subgroups [2020/03/19 13:31] Wolfgang Viechtbauer
Line 27: Line 27:
        ilab.xpos=c(-9.5,-8,-6,-4.5), cex=0.75, ylim=c(-1, 27),        ilab.xpos=c(-9.5,-8,-6,-4.5), cex=0.75, ylim=c(-1, 27),
        order=order(dat.bcg$alloc), rows=c(3:4,9:15,20:23),        order=order(dat.bcg$alloc), rows=c(3:4,9:15,20:23),
-       xlab="Risk Ratio", mlab="", psize=1)+       xlab="Risk Ratio", mlab="", psize=1, header="Author(s) and Year")
  
 ### add text with Q-value, dfs, p-value, and I^2 statistic ### add text with Q-value, dfs, p-value, and I^2 statistic
Line 50: Line 50:
 text(c(-9.5,-8,-6,-4.5), 26, c("TB+", "TB-", "TB+", "TB-")) text(c(-9.5,-8,-6,-4.5), 26, c("TB+", "TB-", "TB+", "TB-"))
 text(c(-8.75,-5.25),     27, c("Vaccinated", "Control")) text(c(-8.75,-5.25),     27, c("Vaccinated", "Control"))
-text(-16,                26, "Author(s) and Year",  pos=4) 
-text(6,                  26, "Risk Ratio [95% CI]", pos=2) 
  
 ### set par back to the original settings ### set par back to the original settings
plots/forest_plot_with_subgroups.txt · Last modified: 2023/09/21 19:09 by Wolfgang Viechtbauer