metan (version 1.18.0)

reorder_cormat: Reorder a correlation matrix

Description

[Stable]

Reorder the correlation matrix according to the correlation coefficient by using hclust for hierarchical clustering order. This is useful to identify the hidden pattern in the matrix.

Usage

reorder_cormat(x)

Value

The ordered correlation matrix

Arguments

x

The correlation matrix

Author

Tiago Olivoto tiagoolivoto@gmail.com

Examples

Run this code
# \donttest{
library(metan)
cor_mat <- corr_coef(data_ge2, PH, EH, CD, CL, ED, NKR)
cor_mat$cor
reorder_cormat(cor_mat$cor)
# }

Run the code above in your browser using DataLab