angleToR: Convert angles to correlations.

Description Usage Arguments Value Author(s) References See Also Examples

Description

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

Usage

1
angleToR(x, ifun = "cos")

Arguments

x

a vector of angles (in radians)

ifun

the interpretation function ("cos" or "lincos")

Value

A correlation matrix

Author(s)

Jan Graffelman (jan.graffelman@upc.edu)

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

1
2
3
angles <- c(0,pi/3)
R <- angleToR(angles)
print(R)

Example output

Loading required package: calibrate
Loading required package: MASS
     [,1] [,2]
[1,]  1.0  0.5
[2,]  0.5  1.0

Correlplot documentation built on May 2, 2019, 2:02 p.m.