Learn R Programming

ggcor (version 0.9.8.1)

matrix_order: Reorder Matrices

Description

Tries to find an order for matrix by different cluster methods.

Usage

matrix_order(x, is.cor = TRUE, cluster.method = "complete", ...)

Arguments

x

a matrix-like object.

is.cor

logical value (defaults to TRUE) indicating wheater x is a correlation matrix.

cluster.method

a character string with the name of agglomeration method.

...

extra params passing to hclust.

Value

a list of hclust object.

Details

Now it just supports for square matrix.

See Also

hclust.

Examples

Run this code
# NOT RUN {
m <- matrix(rnorm(25), nrow = 5)
matrix_order(m)
# }

Run the code above in your browser using DataLab