powered by
fit_angles finds a set of optimal angles for representing a particular correlation matrix by angles between vectors
fit_angles
fit_angles(R, ifun = "cos", ntrials = 10, verbose = FALSE)
a vector of angles (in radians)
a correlation matrix.
an angle interpretation function (cosine, by default).
number of trials for optimization routine nlminb
nlminb
be silent (FALSE), or produce more output (TRUE)
anonymous
Trosset, M.W. (2005) Visualizing correlation. Journal of Computational and Graphical Statistics 14(1), pp. 1--19
X <- matrix(rnorm(90),ncol=3) R <- cor(X) angles <- fit_angles(R) print(angles)
Run the code above in your browser using DataLab