Unlimited learning, half price | 50% off
Get 50% off unlimited learning

arm (version 1.0-1)

triangleplot: Triangle Plot

Description

Function for making a triangle plot from a square matrix

Usage

triangleplot (x, y=NULL, details=TRUE, 
            n.col.legend=5, cex.col=0.7, 
            cex.var=0.9, digits=1, color=FALSE)

Arguments

x
a square matrix.
y
a vector of names that corresponds to each element of the square matrix x.
details
show more than one digits correlaton values. Default is TRUE. FALSE is suggested to get readable output.
n.col.legend
number of legend for the color thermometer
cex.col
font size of the color thermometer.
cex.var
font size of the variable names.
digits
number of digits shown in the text of the color theromoeter.
color
color of the plot, default is FALSE, which uses gray scale.

Details

The function makes a triangle plot from a square matrix, e.g., the correlation plot, see corrplot.

See Also

corrplot

Examples

Run this code
x <- matrix(runif(1600, 0, 1), 40, 40)
 triangleplot(x)

Run the code above in your browser using DataLab