Description Usage Arguments Value Examples
Perform hierarchical clustering analysis on the dataset.
1 2 | hierarchical_clustering(dataset, distance = "euclidean",
clustMethod = "complete", hc.type = "samples")
|
dataset |
list representing the dataset from a metabolomics experiment. |
distance |
the distance measure to be used to compute the distances between the rows of a data matrix. Possible types are "euclidean", "manhattan", "pearson" or "spearman". |
clustMethod |
the agglomeration method to be used. Possible values are "ward", "single", "complete", "average", "mcquitty", "median" or "centroid". |
hc.type |
a string indicating if hierarchical cluster analysis will be performed on samples ("samples") or on variables ("variables") |
An object of class hclust with the clustering results.
1 2 3 4 5 6 | ## Example of hierarchical clustering
library(specmine.datasets)
data(cachexia)
hc.result = hierarchical_clustering(cachexia,
distance = "euclidean", clustMethod = "complete",
hc.type = "samples")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.