The metafor Package

A Meta-Analysis Package for R

User Tools

Site Tools


plots:labbe_plot

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
plots:labbe_plot [2024/04/18 13:56] Wolfgang Viechtbauerplots:labbe_plot [2024/04/18 13:57] Wolfgang Viechtbauer
Line 26: Line 26:
 ### plot with some customization ### plot with some customization
 labbe(res, ci=TRUE, pi=TRUE, grid=TRUE, legend=TRUE, bty="l", labbe(res, ci=TRUE, pi=TRUE, grid=TRUE, legend=TRUE, bty="l",
-      xlab="Log Odds (Treatment Group)", ylab="Log Odds (Control Group)")+      xlab="Log Odds (Control Group)", ylab="Log Odds (Treatment Group)")
  
 ### plot with odds values on the x- and y-axis and some customization ### plot with odds values on the x- and y-axis and some customization
 labbe(res, ci=TRUE, pi=TRUE, grid=TRUE, legend=TRUE, bty="l", labbe(res, ci=TRUE, pi=TRUE, grid=TRUE, legend=TRUE, bty="l",
-      transf=exp, xlab="Odds (Treatment Group)", ylab="Odds (Control Group)")+      transf=exp, xlab="Odds (Control Group)", ylab="Odds (Treatment Group)")
  
 ### plot with risk values on the x- and y-axis and some customization ### plot with risk values on the x- and y-axis and some customization
 labbe(res, ci=TRUE, pi=TRUE, grid=TRUE, legend=TRUE, bty="l", labbe(res, ci=TRUE, pi=TRUE, grid=TRUE, legend=TRUE, bty="l",
-      transf=plogis, lim=c(0,1), xlab="Risk (Treatment Group)", +      transf=plogis, lim=c(0,1), xlab="Risk (Control Group)", 
-      ylab="Risk (Control Group)")+      ylab="Risk (Treatment Group)")
 </code> </code>
  
plots/labbe_plot.txt · Last modified: 2024/04/18 14:17 by Wolfgang Viechtbauer