I am using qgraph
package to plot network of correlations, which show both positive and negative values. I need a gray scale plot due to journal restrictions, so color of nodes can be easily set but I'm having difficulties with edges. I would like to set a different line type for positive ("solid"
) and negative ("dashed"
) correlations, so we don't need gray code for nodes and also for edges. The argument lty
in ´qgraph`only allows for one type of line for the whole plot, how can I get it to work?
Here's a tentative solution
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 )
Thanks a lot beforehand!