Learn R Programming

ChemoSpec (version 4.2.8)

hcaSpectra: Plot HCA Results of a Spectra Object

Description

A wrapper which carries out HCA and plots a dendrogram colored by the information in a Spectra object. Many methods for computing the clusters and distances are available.

Usage

hcaSpectra(spectra, c.method = "complete", d.method = "euclidean",
use.sym = FALSE, leg.loc = "topright", ...)

Arguments

Value

A list, containing an object of class hclust and an object of class dendrogram. The side effect is a plot.

Rdversion

1.1

References

https://github.com/bryanhanson/ChemoSpec

See Also

hclust for the underlying function. hcaScores for similar analysis of PCA scores from a Spectra object. plotHCA for the function that actually does the plotting.

Examples

Run this code
data(SrE.IR)
myt <- expression(bolditalic(Serenoa)~bolditalic(repens)~bold(IR~Spectra))
res <- hcaSpectra(SrE.IR, main = myt)

Run the code above in your browser using DataLab