Heatmaps from Tidy Data

The goal of 'tidyheatmaps' is to simplify the generation of publication-ready heatmaps from tidy data. By offering an interface to the powerful 'pheatmap' package, it allows for the effortless creation of intricate heatmaps with minimal code.


tidyheatmaps

R-CMD-check

The goal of tidyheatmaps is to simplify the generation of publication-ready heatmaps from tidy data. By offering an interface to the powerful pheatmap package, it allows for the effortless creation of intricate heatmaps with minimal code. By offering an interface to the powerful pheatmap package, it allows for the effortless creation of intricate heatmaps with minimal code.

Installation

You can install the released version of tidyheatmaps from CRAN with:

install.packages("tidyheatmaps")

And the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("jbengler/tidyheatmaps")

Usage

Given a tidy data frame of gene expression data like data_exprs, you can easily generate a customized heatmap. The full documentation can be found here.

library(tidyheatmaps)

tidyheatmap(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
)

Acknowledgements

tidyplots relies on a number of fantastic packages that do all the heavy lifting behind the scenes. These include dplyr, pheatmap, rlang, grDevices, tidyr, tibble and RColorBrewer.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("tidyheatmaps")

0.2.1 by Jan Broder Engler, 3 years ago


https://github.com/jbengler/tidyheatmaps, https://jbengler.github.io/tidyheatmaps/


Report a bug at https://github.com/jbengler/tidyheatmaps/issues


Browse source code at https://github.com/cran/tidyheatmaps


Authors: Jan Broder Engler [aut, cre, cph]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports dplyr, pheatmap, rlang, grDevices, tidyr, tibble, RColorBrewer

Suggests testthat, knitr, rmarkdown


See at CRAN