Learn R Programming

Correlplot (version 1.0-2)

correlogram: Plot a correlogram

Description

correlogram plots a correlogram for a correlation matrix.

Usage

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

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))
...
additional arguments for the plot function.

Value

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.

References

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

See Also

fit_angles,nlminb

Examples

Run this code
X <- matrix(rnorm(90),ncol=3)
R <- cor(X)
correlogram(R)

Run the code above in your browser using DataLab