[英]How to narrow the line spcing of different confidence intervals of one object in forestplot
我为每个对象绘制了两个置信区间,但是,两条 OR 线的行距非常宽,以至于一个对象的下一个对象更接近下一个对象的上一个对象。 我设置lineheight="auto"
并且我不希望这张图片太长。 所以现在分不清了。 如何调整两条 OR 线的高度?
forestplot(labeltext =as.matrix(rbind(header,umresult[seq(1,38,2),c(1,23,20)])),
legend = c("method1", "method2"),
mean =cbind(c(NA,umresult$or[seq(1,38,2)]),c(NA,umresult$or[seq(2,38,2)])),
lower=cbind(c(NA,umresult$or_lci[seq(1,38,2)]),c(NA,umresult$or_lci[seq(2,38,2)])),
upper=cbind(c(NA,umresult$or_uci[seq(1,38,2)]),c(NA,umresult$or_uci[seq(2,38,2)])),
graph.pos = 3,
graphwidth = unit(70,"mm"),
is.summary=c(T,rep(F,19)),
txt_gp=fpTxtGp(label=gpar(cex=1),
ticks=gpar(cex=1.1),
xlab=gpar(cex=1),
title=gpar(cex=2)),
hrzl_lines=list("2" = gpar(lwd=1, col="#444444")),
zero = 1,
xticks = c(0,1,2,3),
clip=c(0,3),
lwd.zero=1,
lwd.ci=0.5,
lwd.xaxis=1,
lty.ci=1,
ci.vertices=TRUE, ci.vertices.height = 0.2,
lineheight="auto",
line.margin=unit(4, 'mm'),
colgap=unit(7, 'mm'),
boxsize =0.1,
col=fpColors(zero = "#e22e2a",lines = "BLACK",text=c("black"),box = c("#006400", "#CD853F")),
#fn.ci_norm = forestcolor,
grid =T)
我发现如果我删除参数line.margin
,它会起作用,但我不知道原因。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.