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

View source: R/hmfns.R

col.zR Documentation

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

Description

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

Usage

col.z(x, quant = 0.01, mid = 0, cols = c("blue", "white", "red"))

Arguments

x

A numeric matrix or vector.

quant

The quantile to be used as the scale limits.

mid

The midpoint of the scale.

Value

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


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