Learn R Programming

asymmetry (version 2.0.5)

hmap: Heatmap for skew-symmetric data

Description

This heatmap displays the values of a skew-symmetric matrix by colors. The option dominance orders the rows and columns of the matrix in such a way that the values in the uppertriangle are (approximately) positive and the values in the lower triangle are negative. The order is calculated from the row-sums of the signs of the elements of the skew-symmetric matrix.

Usage

hmap(x, dominance = FALSE, ...)

Arguments

x

A square matrix, either skew-symmetric or asymmetric, or an object of class decomposition. If an asymmetric matrix is given, the skew-symmetric part is computed.

dominance

If true the signs of the skew-symmetric matrix are shown in the heatmap, if set to false the values in this matrix are shown.

...

Further plot arguments: see heatmap.2 for detailed information.

Examples

Run this code
data(studentmigration)
hmap(studentmigration, dominance = TRUE, col = c("red", "white", "blue"))

Run the code above in your browser using DataLab