fit_angles: Fit angles to a correlation matrix

View source: R/fit_angles.R

fit_anglesR Documentation

Fit angles to a correlation matrix

Description

fit_angles finds a set of optimal angles for representing a particular correlation matrix by angles between vectors

Usage

fit_angles(R, ifun = "cos", ntrials = 10, verbose = FALSE)

Arguments

R

a correlation matrix.

ifun

an angle interpretation function (cosine, by default).

ntrials

number of trials for optimization routine nlminb

verbose

be silent (FALSE), or produce more output (TRUE)

Value

a vector of angles (in radians)

Author(s)

anonymous

References

Trosset, M.W. (2005) Visualizing correlation. Journal of Computational and Graphical Statistics 14(1), pp. 1–19

See Also

nlminb

Examples

X <- matrix(rnorm(90),ncol=3)
R <- cor(X)
angles <- fit_angles(R)
print(angles)

Correlplot documentation built on June 22, 2024, 11:34 a.m.