The metafor Package

A Meta-Analysis Package for R

User Tools

Site Tools


plots:contour_enhanced_funnel_plot_2

Differences

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

Link to this comparison view

Next revision
Previous revision
plots:contour_enhanced_funnel_plot_2 [2019/06/03 18:43] – external edit 127.0.0.1plots:contour_enhanced_funnel_plot_2 [2024/04/16 12:26] (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)) 
  
 ### calculate log odds ratios and corresponding sampling variances ### calculate log odds ratios and corresponding sampling variances
Line 21: Line 18:
  
 ### create contour enhanced funnel plot ### create contour enhanced funnel plot
-funnel(dat$yi, dat$vi, yaxis="seinv",+funnel(dat$yi, dat$vi, yaxis="seinv", ylab="Precision (1/se)",
        xlim=c(-3,2), ylim=c(.00001,8), xaxs="i", yaxs="i", las=1,        xlim=c(-3,2), ylim=c(.00001,8), xaxs="i", yaxs="i", las=1,
-       level=c(.10, .05, .01), shade=c("white", "gray55", "gray75"), +       level=c(.10, .05, .01), legend=TRUE, back="gray90", lty=0)
-       legend=TRUE, back="gray90", ylab="Precision (1/se)")+
 </code> </code>
  
plots/contour_enhanced_funnel_plot_2.1559587412.txt.gz · Last modified: 2019/06/03 18:43 by 127.0.0.1