R:使用metafor软件包在荟萃分析的森林图中加下划线 [英] R: underscore letters in forest plot of meta-analysis using the metafor package
本文介绍了R:使用metafor软件包在荟萃分析的森林图中加下划线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有一种方法可以将符号(例如希腊字母,符号或下划线/上划线字母)作为标签显示在 rma()
对象的林图中。 forest()
metafor包的功能?
Is there a way to present symbols (e.g. greek letters, symbols or underscore/upperscore letters) as labels in a forest plot of an rma()
object generated by the forest()
function of the metafor package?
推荐答案
废话的例子,但希望能说明其基本思想:
Here is a nonsense example but it hopefully illustrates the underlying idea:
library(metafor)
data(dat.bcg)
labs <- paste(dat.bcg$author, dat.bcg$year)
## Replace the first label with a greek letter, a superscript and a subscript
labs[1] <- expression(beta[123]^123)
res <- rma(ai=tpos, bi=tneg, ci=cpos, di=cneg, data=dat.bcg, measure="RR",
method="REML")
forest(res, slab = labs)
这篇关于R:使用metafor软件包在荟萃分析的森林图中加下划线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文