brks_heatmap: Center heatmap color gradient at zero

Description Usage Arguments Value

Description

Little helper function to center a color palette around 0 for heatmaps depicting relative signatures such as log2 fold changes or Z-scores. Mostly tailored towards the pheatmap R package.

Usage

1
brks_heatmap(emat, color_palette)

Arguments

emat

numeric matrix

color_palette

vector representing colors, no specific type needed, only used for length

Value

a numeric vector specifying breaks for a heatmap (pheatmap package)


fossbert/binilib documentation built on April 23, 2021, 10:31 p.m.