hmap {asymmetry}R Documentation

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 positive and the values in the lower triangle are negative. The order is calculated from the row-sums of the signs obtained from 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

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

[Package asymmetry version 2.0.4 Index]