[R-meta] Reducing space between the `xlab` and with the x-axis in a forestplot in metafor
Viechtbauer, Wolfgang (SP)
wo||g@ng@v|echtb@uer @end|ng |rom m@@@tr|chtun|ver@|ty@n|
Wed Nov 20 23:44:04 CET 2019
Set 'mgp' before creating the plot:
par(mgp = c(2,.3,0))
From: R-sig-meta-analysis [mailto:r-sig-meta-analysis-bounces using r-project.org] On Behalf Of Reza Norouzian
Sent: Wednesday, 20 November, 2019 21:48
To: R meta
Subject: [R-meta] Reducing space between the `xlab` and with the x-axis in a forestplot in metafor
Below, I'm trying to reduce the space between the xlab (titled: "Log Risk Ratio") and the x-axis (see picture below) in the forest plot generated by the metafor package in R with no success.
Is there any way to achieve this?
dat <- escalc(measure="RR", ai=tpos, bi=tneg, ci=cpos, di=cneg, data=dat.bcg)
forest(dat$yi, dat$vi, mgp = c(2, .3, 0)) # Tried setting `mgp` without success!
Postdoctoral Research Associate | Lecturer
Second Language Acquisition & Research Methods, Ph.D.
College of Education & Human Development
Dep. of Teaching, Learning & Culture | Texas A&M University
College Station, TX 77843
Email: rnorouzian using tamu.edu
Future L2 researchers will be challenged not only on the basis of their substantive questions, but also on how they manage to answer those questions in a methodical manner.
More information about the R-sig-meta-analysis