Learn R Programming

Correlplot (version 1.1.0)

fit_angles: 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)

Value

a vector of angles (in radians)

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)

Author

anonymous

References

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

See Also

Examples

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

Run the code above in your browser using DataLab