Questions tagged [r-qgraph]

a `R` language package to visualize psychometric data.

22 questions
7
votes
1 answer

How to access hidden functions that are very well hidden

I am trying to modify the qgraph() function in the r package qgraph to make some drastic changes to the graphical parameters. But before attempting these modifications, I have accessed the source code for the function and reloaded it as a new…
Robert
  • 141
  • 2
  • 6
6
votes
1 answer

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)
Krrr
  • 452
  • 1
  • 3
  • 15
5
votes
2 answers

igraph resolve overlapping nodes with varying node size r

I am creating a network visualisation of a single "center" node surrounded by about 600 nodes, using igraph in R. The nodes overlapped, which I could then solve using the answer to this question (using qgraph). However, this solution only seems to…
Sam
  • 63
  • 1
  • 6
5
votes
1 answer

How do I make a force-directed graph in python?

I want a graph that shows a few nodes, directional arrows between nodes representing a relationship, with thickness relative to the strength of their connection. In R this is very simple library("qgraph") test_edges <- data.frame( from = c('a',…
ScottieB
  • 3,958
  • 6
  • 42
  • 60
3
votes
1 answer

Can qgraph render edge labels outside the actual edge?

I'm trying to insert edge labels outside the actual edge in my qgraph for readability purposes. I particularly don't like the option of include a white bg below the label, it screws up the edge. According to the manual, it is possible to adjust edge…
eFF
  • 267
  • 3
  • 17
2
votes
1 answer

Multiple qgraph and bootnet plots in same pdf

I would like to merge multiple plots into the same figure, and have tried to use these two commands: par(mfrow=c(2,2)) layout(matrix(c(1,1,2,3), 2, 2, byrow = TRUE)) It works fine when I plot the qgraph network plot, but when I get to printing the…
2
votes
1 answer

Saving qgraph doesnt work in for loop, but outside

I am trying to create and save multiple plots with qgraph(). So far I tried: for (i in 1:100){ png(paste(i,".png",sep="_")) qgraph(l[[i]]) dev.off() } l is a list of 100 weight matrices. Creating a plot outside of the for loop works…
M.Schuler
  • 33
  • 3
2
votes
1 answer

Removing nodes with non-finite edge weights in plots when using qgraph package in R

I want to see relationships in my data on a network and have used the qgraph package to do so, my data, combined.data, is used. The correlation of my data which I passed as an input has a lot of NA values. The command I used to get the network plot…
Tunde Awosanya
  • 335
  • 2
  • 6
  • 16
1
vote
1 answer

How to convert qgraph plot to grob or otherwise produce a single plot with several qgraph objects?

I would like to create a single figure with multiple panels, in which each panel contains a qgraph network plot. Ideally, I would do this: pacman::p_load(qgraph) # Load big5 dataset: data(big5) data(big5groups) # Correlations: Q <-…
ethanweed
  • 33
  • 7
1
vote
1 answer

'centralityPlot(network)' did not print betweenness and closeness

Centrality data printed fine but the centrality plot command produced only a strength plot. There was no plot for closeness or betweenness -- how do I obtain the latter two? I'm walking through the Costatini et al (2015) tutorial using RStudio with…
gogo
  • 23
  • 5
1
vote
1 answer

Suppressing edges in qgraph based on significance test

I am working on network visualizations using qgraph (which I like more than igraph). When trying to only plot significant edges I find two problems: Using the recommended way of choosing the argument graph="sig" I get the following error…
herbert
  • 49
  • 1
  • 4
1
vote
0 answers

How do I plot nodes on concentric circles in R?

I'm using the qgraph package in R to create a network from an adjacency matrix. I want the nodes to be plotted in concentric circles, one node starting in the middle, and then plot nodes on different circles. I received this code to create these…
user3024700
  • 51
  • 2
  • 3
1
vote
1 answer

Error plotting the results of a hill-climbing algorithm from bnlearn package in R as a Reingold-Tilford tree graph

I'm a first-time poster, but a long-time learner from this site. This is the first time an answer to my question hasn't been reverse-engineer-able from previous posts, so I'm hoping someone can help me solve it. I'm trying to plot the results of a…
Miri
  • 13
  • 3
1
vote
1 answer

How to plot near zero values with qgraph?

How can I plot very small/near zero values with the qgraph-package in R? m <- matrix( data = c( 1, 0.5, 0.1, 0.01 ), ncol = 2 ) library( qgraph ) qgraph( input = m )
JimBoy
  • 597
  • 8
  • 18
1
vote
1 answer

qgraph: multiple images at nodes

I have recently been using the Lavaan package in R for Structural Equations Modeling and use the semPlot package, which seems to piggyback off of qgraph, in generating path diagrams. I have found that qgraph has support for plotting images (such as…
1
2