plots:contour_enhanced_funnel_plot
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plots:contour_enhanced_funnel_plot [2020/03/22 18:54] – Wolfgang Viechtbauer | plots:contour_enhanced_funnel_plot [2024/04/16 12:20] (current) – 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(5, | ||
### fit random-effects model | ### fit random-effects model | ||
res <- rma(measure=" | res <- rma(measure=" | ||
- | ### create contour enhanced funnel plot (with funnel centered at 0) | + | ### create contour-enhanced funnel plot (with funnel centered at 0) |
- | funnel(res, level=c(90, 95, 99), shade=c(" | + | funnel(res, level=c(90, 95, 99), refline=0, legend=TRUE) |
</ | </ | ||
plots/contour_enhanced_funnel_plot.txt · Last modified: 2024/04/16 12:20 by Wolfgang Viechtbauer