Skip to contents

This function generates a heatmap visualization of the slopMtx matrix contained within a result object Res. It uses a customizable color gradient and overlays numeric values on each cell.

Usage

checkRes_slopMtx(
  Res,
  min = -1,
  mid = 0,
  max = 1,
  mincolor = "blue",
  midcolor = "white",
  maxcolor = "red"
)

Arguments

Res

A Res object.

min

Numeric value representing the minimum of the color scale. Default is -1.

mid

Numeric value representing the midpoint of the color scale. Default is 0.

max

Numeric value representing the maximum of the color scale. Default is 1.

mincolor

Color corresponding to the minimum value. Default is "blue".

midcolor

Color corresponding to the midpoint value. Default is "white".

maxcolor

Color corresponding to the maximum value. Default is "red".

Value

A Heatmap object from the ComplexHeatmap package, visualizing the slopMtx with annotated values.

Examples

if (FALSE) { # \dontrun{
  checkRes_slopMtx(Res)
} # }