SachaEpskamp / qgraph

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

'lty' error when number of edges equals number of nodes #50

Closed carizmendi closed 3 years ago

carizmendi commented 3 years ago

Archive.zip

Get ''lty' is wrong length' error when number of edges equals number of nodes. Do not receive error if I add an extra edge to the edge list. I've attached a a toy example with an RData file and the R code. Hope it helps!

SachaEpskamp commented 3 years ago

This is because your input is a 3 x 3 matrix, which qgraph thinks is a weights matrix. Using edgelist = TRUE should fix this!

Best, Sacha