Soraya.heatmap: Soraya.heatmap

Description Usage Arguments Value Author(s) Examples

Description

Creates a heatmap with two dedrograms for any numerical matrix.

Usage

1
Soraya.heatmap(data, sample.names=NULL, gene.names=NULL, color=colorRampPalette(c("red", "yellow", "green"))(n = 299), agglomeration.method="ward.D2", distance.method="euclidean", dendro.upper.size=4, dendro.right.size=4, htheme=soraya.heatmap.theme, dtheme=soraya.dendro.theme)

Arguments

data

A numerical matrix.

sample.names

A character vector with sample names. For each data column, a sample name should be given.

gene.names

A character vector with gene/protein names. For each data row, a name should be given.

color

A character vector containing color codes, as returned from brewer.pal() or colorRampPalette().

agglomeration.method

The agglomeration method to be used. This should be (an unambiguous abbreviation of) one of "ward.D", "ward.D2", "single", "complete", "average" (= UPGMA), "mcquitty" (= WPGMA), "median" (= WPGMC) or "centroid" (= UPGMC).

distance.method

The distance measure to be used. This must be one of "euclidean", "maximum", "manhattan", "canberra", "binary" or "minkowski". Any unambiguous substring can be given.

dendro.upper.size

Size of the upper dendrogram, in cm.

dendro.right.size

Size of the right dendrogram, in cm.

htheme

An optional ggplot theme that defines the inner heatmap details.

dtheme

An optional ggplot theme that defines the dentrogram details.

Value

A ggplot2 plot grob ready to be plotted with grid.draw().

Author(s)

Soraya Hoelper and Jens Preußner.

Examples

1
2
##---- Load the data ----
tbd

jenzopr/hlap documentation built on May 19, 2019, 5:07 a.m.