Description Usage Arguments Examples
Plot dendrogram of hierarchical clustering results with different colors
1 2 |
dataset |
list representing the dataset from a metabolomics experiment. |
hc.result |
object of class hclust with the clustering results. |
classes.col |
string or index indicating what metadata to use to color the leafs. |
colors |
vector with the corresponding colors of the metadata classes. |
title |
title of dendrogram. |
lab.cex |
the magnification to be used for x and y labels relative to the current setting of cex. |
leg.pos |
position of the legend. |
label_samples |
string or index indicating what metadata to use to name the leafs. If not provided the name of the leafs will remain the samples names. |
... |
other parameters for plotting. |
1 2 3 4 5 6 | ## Example of colored dendrogram
library(specmine.datasets)
data(cachexia)
hc.result = hierarchical_clustering(cachexia)
dendrogram_plot_col(cachexia, hc.result, "Muscle.loss",
title = "Example")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.