powered by
Plot dendrogram of hierarchical clustering results with different colors
dendrogram_plot_col(dataset, hc.result, classes.col, colors = NULL, title = "", lab.cex = 1, leg.pos = "topright", label_samples=NULL,...)
list representing the dataset from a metabolomics experiment.
object of class hclust with the clustering results.
string or index indicating what metadata to use to color the leafs.
vector with the corresponding colors of the metadata classes.
title of dendrogram.
the magnification to be used for x and y labels relative to the current setting of cex.
position of the legend.
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.
# NOT RUN { ## Example of colored dendrogram data(cachexia) hc.result = hierarchical_clustering(cachexia) dendrogram_plot_col(cachexia, hc.result, "Muscle.loss", title = "Example") # }
Run the code above in your browser using DataLab