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

1
  • 10
    If you set them in the labels argument they won't abbreviate: qgraph(m, labels = colnames(m))
    – jac
    Jul 21, 2016 at 22:44

1 Answer 1

0

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

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.