The metafor Package

A Meta-Analysis Package for R

User Tools

Site Tools


plots:contour_enhanced_funnel_plot

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plots:contour_enhanced_funnel_plot [2020/03/22 18:54] Wolfgang Viechtbauerplots: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,4,1,2)) 
  
 ### fit random-effects model ### fit random-effects model
 res <- rma(measure="RR", ai=tpos, bi=tneg, ci=cpos, di=cneg, data=dat.bcg) res <- rma(measure="RR", ai=tpos, bi=tneg, ci=cpos, di=cneg, data=dat.bcg)
  
-### 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("white", "gray55", "gray75"), refline=0, legend=TRUE)+funnel(res, level=c(90, 95, 99), refline=0, legend=TRUE)
 </code> </code>
  
plots/contour_enhanced_funnel_plot.txt · Last modified: 2024/04/16 12:20 by Wolfgang Viechtbauer