# plotModuleImage: Plot the heatmap of a adjacency matrix In AEBilgrau/Bmisc: Biostatistical miscellaneous functions

## Description

Plot the heatmap of a adjacency matrix

## Usage

 ```1 2 3``` ```plotModuleImage(amat, print.xlab = TRUE, print.ylab = TRUE, labels = rownames(amat), srt = 45, xlab.at = par("usr")[3] - 0.25, ylab.at = par("usr")[1] - 0.25, ...) ```

## Arguments

 `amat` An numeric adjacency matrix with values between 0 and 1. `print.xlab` logical. Should the labels be shown at the x-axis? `print.ylab` logical. Should the labels be shown at the y-axis? `labels` character vector of labels to be printed at the x-axis and y-axis. `srt` numeric. Rotation of the labels. See `par`. `xlab.at` The position of the labels in of the x-axis. `ylab.at` The position of the labels in of the y-axis. `...` Arguments passed to `image`.

## Author(s)

Anders Ellern Bilgrau <anders.ellern.bilgrau (at) gmail.com>

## Examples

 ```1 2 3 4 5 6 7 8``` ```# Construct a random adjacency matrix amat <- replicate(10, runif(10)) amat[upper.tri(amat)] <- amat[lower.tri(amat)] diag(amat) <- NA rownames(amat) <- colnames(amat) <- paste0("Gene", 1:10) # Plot the graph plotModuleImage(amat, srt = 30) ```

AEBilgrau/Bmisc documentation built on May 5, 2019, 11:28 a.m.