fit_angles | R Documentation |
fit_angles
finds a set of optimal angles for representing a
particular correlation matrix by angles between vectors
fit_angles(R, ifun = "cos", ntrials = 10, verbose = FALSE)
R |
a correlation matrix. |
ifun |
an angle interpretation function (cosine, by default). |
ntrials |
number of trials for optimization routine |
verbose |
be silent (FALSE), or produce more output (TRUE) |
a vector of angles (in radians)
anonymous
Trosset, M.W. (2005) Visualizing correlation. Journal of Computational and Graphical Statistics 14(1), pp. 1–19
nlminb
X <- matrix(rnorm(90),ncol=3)
R <- cor(X)
angles <- fit_angles(R)
print(angles)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.