SachaEpskamp / qgraph

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

Nodes overlap when layout="groups" #64

Closed desphua closed 1 year ago

desphua commented 1 year ago

I tried to use layout="groups" but two nodes from different groups overlap each other (i.e., nodes 26 and 51 in my example below). How do I resolve this?

image

SachaEpskamp commented 1 year ago

You can use the layout.control argument for this:

library("qgraph")
adj <- matrix(1,8,8)
groups <- rep(LETTERS[1:2],each=4)
qgraph(adj, groups = groups, layout = "circular", layout.control = 0.8)

Best, Sacha