Learn R Programming

DiffCorr (version 0.4.3)

cluster.molecule: Hierarchical clustering of molecules

Description

Cluster molecules

Usage

cluster.molecule(
  data,
  method = "pearson",
  linkage = "average",
  absolute = FALSE
)

Value

an object of class 'hclust'

Arguments

data

matrix or data frame

method

c("pearson", "spearman", "kendall", "euclidean", "maximum", "manhattan", "canberra", "binary", or "minkowski")

linkage

c("average", "ward", "single", "complete", "mcquitty", "median", "centroid")

absolute

if TRUE, then 1-|COR| else 1-COR, default is FALSE

Author

Atsushi Fukushima

Examples

Run this code
cluster.molecule(as.matrix(t(iris[,1:4])), "pearson", "average")

Run the code above in your browser using DataLab