【发布时间】:2016-04-22 08:45:59
【问题描述】:
我正在使用qgraph 包来绘制相关网络,它显示正值和负值。由于期刊限制,我需要一个灰度图,因此可以轻松设置节点的颜色,但我在处理边缘时遇到了困难。我想为正 ("solid") 和负 ("dashed") 相关设置不同的线型,因此我们不需要节点和边的格雷码。 'qgraph'中的参数lty 只允许整个情节使用一种类型的线,我怎样才能让它工作?
这是一个暂定的解决方案
qgraph(polys$rho, groups = structure_hscl,
color= c("white","gray","gray25"),
borders=TRUE, trans=FALSE, details=TRUE,
bonf=TRUE, alpha=.05,
normalize =TRUE, vsize=3,
threshold= .2, labels=labels_hscl,
layout="spring", graph="pcor",
lty = c("solid","dashed") # this obviously doesn't work )
非常感谢!
【问题讨论】: