cluster: Cluster rows or columns of a matrix

Description Usage Arguments Value

Description

Convenience function for sorting the rows and/or columns of a matrix based on hclust.

Given a numeric matrix, or data frame, sort rows and/or columns based on correlation distance heirarchical clustering.

Usage

1
2
cluster(m, method = "ward.D2", correlation = "pearson",
  metric = "euclidean", rows = T, cols = T)

Arguments

m

Numeric matrix.

method

Clustering method passed to hclust. Defaults to 'complete'.

rows

Logical. Whether to cluster rows. Defaults to TRUE.

cols

Logical. Whether to cluster columns. Defaults to TRUE.

Value

Matrix with columns and/or rows sorted.


EricEdwardBryant/biogridr documentation built on May 6, 2019, 4:02 p.m.