SachaEpskamp / qgraph

Developmental version of qgraph
GNU General Public License v2.0
68 stars 21 forks source link

How do I make the edges of the network analysis diagram appear with dotted lines #53

Closed threetree-wu closed 3 years ago

threetree-wu commented 3 years ago

Hello, The magazine I want to contribute cannot display the color of network analysis due to printing problems. Is there any way to replace the negative correlation edge with a dashed line to display it?

SachaEpskamp commented 3 years ago

Yes just use qgraph(..., theme = "gray")!

threetree-wu commented 3 years ago

Thank you for your prompt reply,I tried this argument, but found that it just turned all the colors gray. Whether "makeBW" can achieve the positive correlation into a solid line, negative correlation into a dotted line?

SachaEpskamp commented 3 years ago

You can also use the lty argument for that. E.g., qgraph(wmat, ..., lty=ifelse(wmat<0,2,1))