Learn R Programming

corrplot (version 0.54)

corr.rect: Draw rectangle(s) on the correlation matrix graph.

Description

Draw rectangle(s) around the chart of corrrlation matrix based on the number of each cluster's members.

Usage

corr.rect(clus, rect.col = "black", lwd = 2)

Arguments

clus
vector, the number of each cluster's members.
rect.col
color of rectangles.
lwd
line width of rectangles.

Examples

Run this code
data(mtcars)
corr <- cor(mtcars)
corrplot(corr, method="circle", order = "PCA")
corr.rect(c(6,5))

Run the code above in your browser using DataLab