The goal of tidyheatmap
is to provide a tidyverse-style interface to
the powerful heatmap package
pheatmap by
@raivokolde. This enables the
convenient generation of complex heatmaps from tidy data with minimal
code.
You can install tidyheatmap
from GitHub with:
# install.packages("devtools")
devtools::install_github("jbengler/tidyheatmap")
Given a tidy data frame of gene expression data like data_exprs
, you
can easily generate a customized heatmap.
library(tidyheatmap)
tidy_heatmap(data_exprs,
rows = external_gene_name,
columns = sample,
values = expression,
scale = "row",
annotation_col = c(sample_type, condition, group),
annotation_row = c(is_immune_gene, direction),
gaps_row = direction,
gaps_col = group
)
https://jbengler.github.io/tidyheatmap/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.