【问题标题】:How to hide the 95% CI on the forest plot如何在森林图上隐藏 95% CI
【发布时间】:2017-11-26 05:26:40
【问题描述】:

我正在尝试一种方法来隐藏我们在森林图右侧看到的信息 (ES(95% CI). 我在 R 中使用 metafor 包。

代码如下

library(metafor)

par(mar=c(4,4,1,2))

res <- rma(ai=tpos, bi=tneg, ci=cpos, di=cneg, data=dat.bcg, measure="RR",
           slab=paste(author, year, sep=", "), method="REML")

forest(res, xlim=c(-16, 6), at=log(c(0.05, 0.25, 1, 4)), atransf=exp,
       ilab=cbind(dat.bcg$tpos, dat.bcg$tneg, dat.bcg$cpos, dat.bcg$cneg),
       ilab.xpos=c(-9.5,-8,-6,-4.5), cex=0.75, ylim=c(-1, 27),
       order=order(dat.bcg$alloc), rows=c(3:4,9:15,20:23),
       xlab="Risk Ratio", mlab="", psize=1)

在手册中找不到此选项。有人成功了吗?

【问题讨论】:

  • 使用annotate=FALSE
  • @Wolfgang 请作为答案发布。
  • @Wolfgang 顺便说一句,我创建了metafor标签,还有很多metafor question,谢谢你的包!
  • @zx8754 感谢您添加标签!
  • 如何从元包中删除森林图函数的 95%CI。我发现 annotate=F 不适用于元包中的森林功能

标签: r forestplot metafor


【解决方案1】:

您可以通过在forest() 中使用参数annotate=FALSE 来隐藏“注释”。看看help(forest.rma)

【讨论】:

  • 如何从元包中删除森林图函数的 95%CI。我发现 annotate=F 不适用于元包中的森林功能
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2021-05-29
  • 2016-11-10
  • 2012-01-02
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多