Description Usage Arguments Details Value Author(s)
Heatmaps Using ggplot2
This function can be used to create heatmaps with dendrograms similar to heatmap.2
using ggplot2
and ggdendro
for a more "modern" and clean appearance.
1 2 3 |
data |
a numeric matrix of expression, genes x samples, or a |
distance |
a character string for |
linkage |
a character string for |
row_sort |
a logical whether rows should be reordered based on clustering (default = TRUE) |
col_sort |
a logical whether columns should be reordered based on clustering (default = TRUE) |
labframe |
a data.frame of column labels (default = NULL) |
rlabframe |
a data.frame of row labels (default = NULL) |
colbrew |
a vector of strings same length as |
rcolbrew |
a vector of strings same length as |
rtext |
a vector of strings with text annotations for rows of heatmap (default = NULL) |
fill_title |
a character string specifying the fill title (default = NULL) |
Valid choices of color palettes are listed in RColorBrewer::brewer.pal.info
a ggplot
object
Patrick Kimes
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.