Skip to contents

Compute one limits pair covering a set of difference matrices, so the same colour means the same delta in every figure. Pass the result to each HeatmapDistanceDiff(limits = ...) call.

Usage

DiffLimits(mats, quantile_clip = 1, symmetric = TRUE)

Arguments

mats

A list of difference matrices / data.frames.

quantile_clip

Quantile of the pooled values used for the extremes. Default 1 (true min/max). Use e.g. 0.98 so one outlier module does not flatten every other figure.

symmetric

If TRUE (default) returns c(-M, M) with M = max(|lo|, hi), so equal colour intensity means equal magnitude on both arms. FALSE returns the raw c(lo, hi), giving a lopsided bar that uses the full ramp.

Value

Numeric length-2 vector, c(lower, upper).