angleToR | R Documentation |
Function angleToR
converts a vector of angles (in radians) to an
estimate of the correlation matrix, given an interpretation function.
angleToR(x, ifun = "cos")
x |
a vector of angles (in radians) |
ifun |
the interpretation function ("cos" or "lincos") |
A correlation matrix
Jan Graffelman (jan.graffelman@upc.edu)
Graffelman, J. (2012) Linear-angle correlation plots: new graphs for revealing correlation structure. Journal of Computational and Graphical Statistics. 22(1): 92-106.
cos
,lincos
angles <- c(0,pi/3)
R <- angleToR(angles)
print(R)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.