Learn R Programming

Correlplot (version 1.0-2)

angleToR: Convert angles to correlations.

Description

Function angleToR converts a vector of angles (in radians) to an estimate of the correlation matrix, given an interpretation function.

Usage

angleToR(x, ifun = "cos")

Arguments

x
a vector of angles (in radians)
ifun
the interpretation function ("cos" or "lincos")

Value

References

Graffelman, J. (2012) Linear-angle correlation plots: new graphs for revealing correlation structure. Journal of Computational and Graphical Statistics. 22(1): 92-106.

See Also

cos,lincos

Examples

Run this code
angles <- c(0,pi/3)
R <- angleToR(angles)
print(R)

Run the code above in your browser using DataLab