嗨我在r中使用coefplot函数来绘制广义线性模型的系数。我想改变95%CI线的颜色与50%CI线的颜色不同。 95%和50%CI线的颜色参数默认为相同的颜色。coefplot in R;改变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()
另一点是使用'coefplot'输出,而不是你自己的系数。 'mm < - coefplot(model1,plot = FALSE)'然后你使用''HighInner“,”LowInner“,”HighOuter'..'变量,也许你可以把它作为练习。 – agstudy