嗨,我在 r 中使用 coefplot 函数来绘制广义线性模型中的系数。我想将 95% CI 线的颜色更改为与 50% CI 线不同。颜色参数默认为 95% 和 50% CI 线使用相同的颜色。
coeff<-coefplot(model1,pointSize=5,color="black",fillColor="grey",lwdOuter = 1.2,lwdInner=2)
coeff + theme_bw() +
theme(panel.grid.major=element_blank(),panel.grid.minor=element_blank()) +
theme (axis.title.y = element_text(size=16)) +
theme(axis.title.x = element_text(size=16)) +
scale_y_discrete(name="",labels=c("NDAA","GAP","SS","PS","LL")) +
theme (axis.text.x = element_text(size=16)) +
theme(axis.text.x = element_text(size=16)) +
scale_x_continuous(name="Regression Estimate") +
labs(title = "") +
coord_flip()