Learn R Programming

qgraph (version 0.4.5)

qgraph.panel: qgraph.panel

Description

Creates a 4-panel graph. See details. The usage is the same as qgraph

Usage

qgraph.panel(adj, ...)

Arguments

adj
The adjacency matrix or edgelist. See qgraph. Correlation matrix is recommended.
...
Optional additional arguments (only 'layout' and 'graph' are omitted). See qgraph.

Details

This function will create a 4-panel plot containing four plots useful in analyzing correlation matrices:
  1. Association graph with circular layout
  2. Association graph with spring layout
  3. Concentration graph with spring layout
  4. Factorial graph with spring layout

See Also

qgraph qgraph.svg

Examples

Run this code
#### VISUALIZE CORRELATION MATRIX ###
eta=matrix(rnorm(200*5),ncol=5)
lam=matrix(0,nrow=100,ncol=5)
for (i in 1:5) lam[(20*i-19):(20*i),i]=rnorm(20,0.7,0.3)
eps=matrix(rnorm(200*100),ncol=100)
Y=eta%*%t(lam)+eps

## run qgraph:
qgraph.panel(cor(Y),groups=list(1:20,21:40,41:60,61:80,81:100),cut=0.4,vsize=3)

Run the code above in your browser using DataLab