Skip to content

[R-meta] Setting Axis in Forest Function

3 messages · D J, Wolfgang Viechtbauer

D J
#
Hello,

Is there a way to specify the scale of the x-axis for the effect sizes. I need to make multiple forest plots and I want the range to be consistent.

m.overall <- rma.mv(fishersZ, V_fisher, random = list(~ 1 | effectsizeID, ~ 1 | StudyID), intercept=
                      TRUE, data=dataset, method = "REML", slab=paste(author))
forest(m.overall, xlim=c(6,-10),
       xlab = "",mlab="",
       cex=0.40, fonts="sans",
       ilab=cbind(dataset$Refid), ilab.xpos=c(-4),)

Thanks!

Best,
DJ
#
Hi DJ,

Maybe you are looking for the 'alim' (or 'at') argument.

Best,
Wolfgang
D J
#
Don?t know how I missed that one ? thanks so much!

Best,
DJ

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows

From: Viechtbauer, Wolfgang (NP)<mailto:wolfgang.viechtbauer at maastrichtuniversity.nl>
Sent: May 30, 2022 2:21 PM
To: D J<mailto:Dylan_Johnson at hotmail.ca>; r-sig-meta-analysis at r-project.org<mailto:r-sig-meta-analysis at r-project.org>
Subject: RE: Setting Axis in Forest Function

Hi DJ,

Maybe you are looking for the 'alim' (or 'at') argument.

Best,
Wolfgang