6

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

Stedy
  • 7,359
  • 14
  • 57
  • 77
Krrr
  • 452
  • 1
  • 3
  • 15
  • 10
    If you set them in the labels argument they won't abbreviate: `qgraph(m, labels = colnames(m))` – jac Jul 21 '16 at 22:44

1 Answers1

0

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

Sacha Epskamp
  • 46,463
  • 20
  • 113
  • 131