Description Usage Arguments Value Author(s) Examples
Creates a heatmap with two dedrograms for any numerical matrix.
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)
|
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. |
A ggplot2 plot grob ready to be plotted with grid.draw().
Soraya Hoelper and Jens Preußner.
1 2 | ##---- Load the data ----
tbd
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.