是否可以使林地输出较小/调整大小? Forestplot不适合屏幕在R中使用包“ meta”和“ metafor”

问题描述

我们正在R中使用“ Meta”和“ Metafor”软件包进行荟萃分析。效果很好,但是当我们制作人物时,它不适合屏幕。文章名称不正确,最高和最低行不可见。我们已经尝试过缩小字体大小等,但这并不能解决问题。

代码

subganal.study.qual=rma(yi,vi,data=ies.logit.qual.nomis,mods=~study.qual,method="DL")
pes.summary.study.qual.nomis=Metaprop(Positive,Total,study,data=db.nomis.qual,sm="PLO",method.tau="DL",method.ci="NAsm",byvar=study.qual,tau.common=TRUE,tau.preset=sqrt(subganal.study.qual$tau2))

forest(pes.summary.study.qual.nomis)

See for example of forest plot here

解决方法

因为它是一个基本图,我们可以设置边距:

library(metafor)
dat <- escalc(measure="RR",ai=tpos,bi=tneg,ci=cpos,di=cneg,data=dat.bcg)

# default margin
x <- par()
x$mar
# [1] 5.1 4.1 4.1 2.1
forest(dat$yi,dat$vi,main = "Default margin: 5.1 4.1 4.1 2.1")

# set bigger margins
par(mar = c(6,6,6))
forest(dat$yi,main = "Bigger margin: 6,6")

enter image description here

enter image description here