【发布时间】:2021-12-03 11:31:23
【问题描述】:
我用非默认的annosym 值绘制了一个森林图:
res <- rma(ai=tpos, bi=tneg, ci=cpos, di=cneg, data=dat.bcg, measure = 'OR', method='DL',
slab=paste(author, year))
forest(res,
annosym=c(' (','; ',')'),
ylim=c(-2,16)
)
并尝试添加一些相同annosym规范的子分析结果:
dat.bcg.rand <- dat.bcg[dat.bcg$alloc=='random',]
res.rand <- rma.uni(ai=tpos, bi=tneg, ci=cpos, di=cneg, data=dat.bcg.rand, measure = 'OR', method='DL',
slab=paste(author, year))
addpoly(res.rand, mlab='Random alloc.',atransf=exp, annosym=c(' (','; ',')'))
查看警告:
Warning messages:
1: In text.default(...) : "annosym" is not a graphical parameter
2: In segments(...) : "annosym" is not a graphical parameter
3: In segments(...) : "annosym" is not a graphical parameter
4: In segments(...) : "annosym" is not a graphical parameter
5: In polygon(...) : "annosym" is not a graphical parameter
6: In text.default(...) : "annosym" is not a graphical parameter
以及混合了两个annosym 规范的情节:
您对此有任何解决方法吗?我真的,真的需要更改addpoly() 中的默认annosyms。
【问题讨论】:
-
好像我还没有为
addpoly()实现annosym。让我开始吧。