heatmap_components: Create grid and dendro parts of a heatmap as separate ggplot...

Description Usage Arguments Value Examples

Description

Create grid and dendro parts of a heatmap as separate ggplot objects

Usage

1
2
heatmap_components(x, rlabels = rownames(x), clabels = colnames(x),
  cold = TRUE, rowd = TRUE, stripdata = NULL)

Arguments

x

matrix of intensity values

rlabels

a character vector of row labels with length equal to number of rows in x

clabels

a character vector of column labels with length equal to number of columns in x

cold

whether to cluster columns and produce a column dendro

rowd

whether to cluster rows and produce a row dendro

Value

a named list with the following objects

transformed data used to plot tile, rowd and cold

Examples

1
2
3
4
5
data(pms)

hmc <- heatmap_components(x = pms)

show_ggheatmap(hmc$tile,row_dendro = hmc$rowd,col_dendro = hmc$cold)

vlsci/ggplotheatmap documentation built on May 3, 2019, 6:16 p.m.