heat2: A quick and dirty heatmap

Description Usage Arguments Value

View source: R/misc.R

Description

A quick and dirty heatmap

Usage

1
2
3
4
5
6
7
8
heat2(
  mat,
  Rowv = NA,
  Colv = NA,
  symbreaks = TRUE,
  col = if (symbreaks) gplots::redblue else gplots::redgreen,
  ...
)

Arguments

mat

numeric matrix

Rowv

determines if and how the row dendrogram should be reordered. By default, it is TRUE, which implies dendrogram is computed and reordered based on row means. If NULL or FALSE, then no dendrogram is computed and no reordering is done. If a dendrogram, then it is used "as-is", ie without any reordering. If a vector of integers, then dendrogram is computed and reordered based on the order of the vector.

Colv

determines if and how the column dendrogram should be reordered. Has the options as the Rowv argument above and additionally when x is a square matrix, Colv="Rowv" means that columns should be treated identically to the rows.

symbreaks

Boolean indicating whether breaks should be made symmetric about 0. Defaults to TRUE if the data includes negative values, and to FALSE otherwise.

col

colors used for the image.

...

passed to gplots::heatmap.2

Value

make a plot


amcdavid/AMmisc documentation built on June 1, 2020, 11:04 a.m.