matrix_reorder: Reorder Matrices

Description Usage Arguments Value See Also Examples

View source: R/matrix-order.R

Description

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

Usage

1
matrix_reorder(x, cluster.method = NULL, ...)

Arguments

x

a matrix-like object.

cluster.method

a character string with the name of agglomeration method. Defaults to "complete" for numeric matrix, to "osa" for other type matrix.

...

extra params passing to hclust.

Value

a list of new order.

See Also

hclust, stringdist.

Examples

1
2
3
4
m <- matrix(rnorm(25), nrow = 5)
matrix_reorder(m)
m1 <- matrix(sample(LETTERS[1:4], 100, replace = TRUE), nrow = 10)
matrix_reorder(m1)

houyunhuang/ggtriangle documentation built on May 11, 2020, 2:02 p.m.