reorder_cormat: Reorder a correlation matrix

Description Usage Arguments Value Author(s) Examples

View source: R/corr_coef.R

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

1

Arguments

x

The correlation matrix

Value

The ordered correlation matrix

Author(s)

Tiago Olivoto tiagoolivoto@gmail.com

Examples

1
2
3
4
library(metan)
cor_mat <- corr_coef(data_ge2, PH, EH, CD, CL, ED, NKR)
cor_mat$cor
reorder_cormat(cor_mat$cor)

metan documentation built on Nov. 10, 2021, 9:11 a.m.