Learn R Programming

matie (version 1.2)

amap: Heatmap and dendrogram from associations between all pairs of variables.

Description

Clusters variables in a datafrome using dist = 1-A and plots a heatmap with cluster dendrogram attached.

Usage

amap(dataSet, palette, corAdjusted, method, title, ...)

Arguments

dataSet
the n x m data frame representing n samples of the m variables.
palette
colour palette to use for the heatmap.
corAdjusted
a flag which if set causes bi-variate A scores to be mutiplied by the sign of the same bi-variate correlation. This gives a direction to the association. defaults to FALSE.
method
the method to use for correlation association as performed by cor, one of "pearson", "spearman", "kendall". The default is "spearman".
title
a main title for the heatmap plot.
...
passed on to graphics routines ...

Value

Returns nothing.

Details

uses heatmap.2 from the gplots package to display a heatmap and associated dendorgram with bi-variate scores provided by matie's A value. If required these scores can be expanded into the range [-1,1] through multiplication by the sign of the corresponding bi-variate correlation score.

References

This code was adapted from Moignard et al.

See Also

ma tap

Examples

Run this code
    data(baseballData)
    amap(baseballData,corAdjusted=TRUE)

Run the code above in your browser using DataLab