powered by
Function angleToR converts a vector of angles (in radians) to an estimate of the correlation matrix, given an interpretation function.
angleToR
angleToR(x, ifun = "cos")
A correlation matrix
a vector of angles (in radians)
the interpretation function ("cos" or "lincos")
Jan Graffelman ([email protected])
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
cos
lincos
angles <- c(0,pi/3) R <- angleToR(angles) print(R)
Run the code above in your browser using DataLab