correlogram {Correlplot}R Documentation

Plot a correlogram

Description

correlogram plots a correlogram for a correlation matrix.

Usage

correlogram(R,labs=colnames(R),ifun="cos",cex=1,main="",ntrials=50,
            xlim=c(-1.2,1.2),ylim=c(-1.2,1.2),pos=NULL,...)

Arguments

R

a correlation matrix.

labs

a vector of labels for the variables.

ifun

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

cex

character expansion factor for the variable labels

main

a title for the correlogram

ntrials

number of starting points for the optimization routine

xlim

limits for the x axis (e.g. c(-1.2,1.2))

ylim

limits for the y axis (e.g. c(-1.2,1.2))

pos

if specified, overrules the calculated label positions for the variables.

...

additional arguments for the plot function.

Details

correlogram makes a correlogram on the basis of a set of angles. All angles are given w.r.t the positive x-axis. Variables are represented by unit vectors emanating from the origin.

Value

A vector of angles

Author(s)

Jan Graffelman (jan.graffelman@upc.edu)

References

Trosset, M.W. (2005) Visualizing correlation. Journal of Computational and Graphical Statistics 14(1), pp. 1–19

See Also

fit_angles,nlminb

Examples

X <- matrix(rnorm(90),ncol=3)
R <- cor(X)
angles <- correlogram(R)

[Package Correlplot version 1.1.0 Index]