[R-meta] Reducing space between the `xlab` and with the x-axis in a forestplot in metafor

Reza Norouzian rnorouz|@n @end|ng |rom gm@||@com
Wed Nov 20 23:47:44 CET 2019


Thanks a lot, Wolfgang!

Best,
Reza

On Wed, Nov 20, 2019 at 4:44 PM Viechtbauer, Wolfgang (SP) <
wolfgang.viechtbauer using maastrichtuniversity.nl> wrote:

> Hi Reza,
>
> Set 'mgp' before creating the plot:
>
> par(mgp = c(2,.3,0))
> forest(dat$yi, dat$vi)
>
> Best,
> Wolfgang
>
> -----Original Message-----
> 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
>
> Dear All,
>
> 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?
> library(metafor)
>
> 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!
>
> --
> Reza Norouzian
> 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
> Webpage: https://directory.education.tamu.edu/view.epl?nid=rnorouzian
> Email: rnorouzian using tamu.edu
> Phone: (979)-422-7052
> 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.
>


-- 
*Reza Norouzian*
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
Webpage: *https://directory.education.tamu.edu/view.epl?nid=rnorouzian
<https://directory.education.tamu.edu/view.epl?nid=rnorouzian>*
Email: rnorouzian using tamu.edu
Phone: (979)-422-7052
*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.*

	[[alternative HTML version deleted]]



More information about the R-sig-meta-analysis mailing list