Visualization

Get colors for your heatmap annotation

This post will show how to configure quickly the colors for the annotation of rows/columns that go on top or on the side of a heatmap. I normally use pheatmap a lot. Recently I discovered ComplexHeatmap. In both cases I spend always sometime changing the colors of the annotations. I ended up coding a function inside my package DEGreport to do that. Given a data.frame with metadata data information will do: