hmapSpectra:
Create a Seriated Heat Map Comparing Samples and Spectral Data for a Spectra Object
Description
Creates a heat map with marginal dendrograms using seriation procedures. Very briefly, the samples that are most like each other occur in one corner, and the frequencies that are most informative with respect to the samples are in that corner as well. This is achieved by using heirchical cluster analysis and then re-ordering the clusters in a coordinated way across each dimension. See the vignette for package seriation.
Additional arguments to be passed downstream. A great deal of control is available - check ?hmap for details. Most of the control actually derives from the heatmap2 function in package gplots.
Value
A list composed of two data frames. One is the frequencies and their rankings, the other is samples and their rankings. Side effect is a plot.