col.abs: Color scale for a specified quantile. This scale is intended...

View source: R/hmfns.R

col.absR Documentation

Color scale for a specified quantile. This scale is intended for heatmaps containing only positive values, so the range is set to c(0,1-quant).

Description

Color scale for a specified quantile. This scale is intended for heatmaps containing only positive values, so the range is set to c(0,1-quant).

Usage

col.abs(x, quant = 0.05, cols = c("white", "black"))

Arguments

x

A numeric matrix or vector.

quant

The quantile to be used as the upper limit.

cols

The colors used for the color scale.

Value

A colorRamp2 scale which can be passed to Heatmap().


kewiechecki/moreComplexHeatmap documentation built on June 8, 2025, 5:18 a.m.