Krrr
Krrr

Reputation: 482

qgraph in R shortens node labels

I am using qgraph in R. It automatically shortens node labels, which can be very useful. But how do I ask it to use full labels?

Here is an example.

require(qgraph)
m <- matrix(1,3,3)
colnames(m) <- c("AAAAAAAA", "BBBBBBBB", "CCCCCCCC")
qgraph(m)

shortened node labels example

Upvotes: 8

Views: 2398

Answers (1)

Sacha Epskamp
Sacha Epskamp

Reputation: 47602

As Jac said in the comments, you need to manually overwrite the labels with qgraph(m, labels = colnames(m)).

Upvotes: 2

Related Questions