Learn R Programming

specmine (version 3.1.6)

dendrogram_plot: Plot dendrogram

Description

Plot dendrogram of hierarchical clustering results.

Usage

dendrogram_plot(dataset, hc.result, column.metadata = 1, 
labels = NULL, ...)

Arguments

dataset

list representing the dataset from a metabolomics experiment.

hc.result

object of class hclust with the clustering results.

column.metadata

string or index indicating what metadata to use to name the leafs.

labels

vector with the leaf names (optional).

other parameters for plotting.

Examples

Run this code
# NOT RUN {
  ### Example of a dendrogram
  library(specmine.datasets)
  data(cachexia)
  hc.result = hierarchical_clustering(cachexia)
  dendrogram_plot(cachexia, hc.result)
  
# }

Run the code above in your browser using DataLab