Shared colour limits across several difference matrices
DiffLimits.RdCompute 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.
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) returnsc(-M, M)withM = max(|lo|, hi), so equal colour intensity means equal magnitude on both arms.FALSEreturns the rawc(lo, hi), giving a lopsided bar that uses the full ramp.