plotCov: Plot a Covariance/Correlation Heat Map

Description Usage Arguments Value Note Author(s) See Also Examples

View source: R/plotCov.R

Description

Any covariance matrix can be entered and an image with covariance and correlation matrices will be plotted.

Usage

1

Arguments

cov

A covariance matrix.

Value

An image containing heat map based items for the covariance and resulting correlation matrix.

Note

The diagonal is all 1's from the covariance matrix, the correlation matrix diagonal of all 1's is left out. No EQS code is necessary to use this function, it will work with any covariance matrix.

Author(s)

Craig M. Krebsbach [email protected]

See Also

eqsCov eqsCorr eqsDesc cor2cov

Examples

1
2
3
4
5
6
7
8
9
library(datasets)
plotCov(ability.cov$cov)
plotCov(cov(attitude))

library(lavaan)
HolzingerSwineford1939
# Select variables x1-x9 only
HS39 <- cov(HolzingerSwineford1939[,7:15])
plotCov(HS39)

eqs2lavaan documentation built on May 30, 2017, 8:13 a.m.