• Stars
    star
    213
  • Rank 179,455 (Top 4 %)
  • Language
    R
  • Created almost 12 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Pretty heatmaps

pheatmap

A package for drawing pretty heatmaps in R. The ordinary heatmap function in R has several drawbacks when it comes to producing publication quality heatmaps. It is hard to produce pictures with consistent text, cell and overall sizes and shapes. The function pheatmap tries to alleviate the problems by offering more fine grained control over heatmap dimensions and appearance.

Installation

To install the CRAN version use just

install.packages(pheatmap)

You can install the development version using devtools

library(devtools)
install_github("raivokolde/pheatmap")

Features

More important features of pheatmap include:

  • ability to directly control the size of the cells, text, etc
  • automatic generation of legends
  • row and column annotations
  • ability to post-edit the heatmap using grid graphics tools
  • easy way to separate clusters visually using spacers
  • reasonable defaults
  • ...

Many of these features are on display in the next figure

pheatmap_example