Learn R Programming

specmine (version 1.0)

dendrogram_plot_col: Plot dendrogram

Description

Plot dendrogram of hierarchical clustering results with different colors

Usage

dendrogram_plot_col(dataset, hc.result, classes.col, title = "", lab.cex = 1, leg.pos = "topright",...)

Arguments

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 name the leafs.
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.
...
other parameters for plotting.

Examples

Run this code
  ## 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