Learn R Programming

qgraph (version 0.4.0)

qgraph.loadings: qgraph.loadings

Description

This function is a wrapper function for qgraph designed to visualize factor loadings.

Usage

qgraph.loadings( fact, ...)

Arguments

fact
A matrix containing factor loadings (items per row, factors per column)
...
Additional optional arguments passed to qgraph and special arguments used in this function (described below).

References

https://sites.google.com/site/qgraphproject

See Also

qgraph qgraph.pca qgraph.efa

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

loadings=loadings(factanal(covmat=cor(Y),factors=5))[1:100,1:5]
qgraph.loadings(loadings)

Run the code above in your browser using DataLab