plots:cumulative_forest_plot
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
plots:cumulative_forest_plot [2017/04/23 16:57] – external edit 127.0.0.1 | plots:cumulative_forest_plot [2020/06/03 08:36] – [Code] Wolfgang Viechtbauer | ||
---|---|---|---|
Line 13: | Line 13: | ||
<code rsplus> | <code rsplus> | ||
library(metafor) | library(metafor) | ||
- | |||
- | ### decrease margins so the full space is used | ||
- | par(mar=c(4, | ||
### calculate (log) risk ratios and corresponding sampling variances | ### calculate (log) risk ratios and corresponding sampling variances | ||
Line 27: | Line 24: | ||
### cumulative forest plot | ### cumulative forest plot | ||
- | forest(tmp, xlim=c(-4, | + | forest(tmp, xlim=c(-4, |
- | | + | |
- | + | ||
- | ### switch to bold font | + | |
- | par(cex=0.75, | + | |
- | + | ||
- | ### add column headings to the plot | + | |
- | text(-4, 15, " | + | |
- | text( 2, 15, "Risk Ratio [95% CI]", pos=2) | + | |
</ | </ | ||
plots/cumulative_forest_plot.txt · Last modified: 2023/08/19 13:38 by Wolfgang Viechtbauer