README.md

tidyheatmap

Travis build
status Codecov test
coverage Lifecycle:
experimental

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.

Installation

You can install tidyheatmap from GitHub with:

# install.packages("devtools")

devtools::install_github("jbengler/tidyheatmap")

Example

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
)

Documentation

https://jbengler.github.io/tidyheatmap/



jbengler/tidyheatmap documentation built on June 24, 2020, 9:51 p.m.