ACheatmap: Heatmap of a matrix.

View source: R/ACutils_export.R

ACheatmapR Documentation

Heatmap of a matrix.

Description

It plots the heatmap of a given matrix. It is usefull because it allows the user to use custom, non-symmetric palettes, centered around a desired value.

Usage

ACheatmap(
  Mat,
  center_value = 0,
  col.upper = "darkred",
  col.center = "grey95",
  col.lower = "#3B9AB2",
  col.n_breaks = 59,
  use_x11_device = TRUE,
  remove_diag = FALSE,
  main = " ",
  x_label = " ",
  y_label = " ",
  horizontal = TRUE
)

Arguments

Mat

the matrix to be plotted.

center_value

the value around which the palette has to be centered. Set NULL for symmetric palette.

col.upper

the color for the highest value in the matrix.

col.center

the color for the centered value (if desired) or for the middle value in the matrix (oterhwise).

col.lower

the color for the lowest value in the matrix.

col.n_breaks

has to be odd. The refinement of the palette.

use_x11_device

boolean, if x11() device has to be activated or not.

remove_diag

boolean, if the diagonal has to be removed or not.

main

the title of the plot.

x_label

the name of the x-axis in the plot.

y_label

the name of the y-axis in the plot.

horizontal

boolean, if the heatmap bar has to be horizontal or not.

Value

this function does not return anything


alessandrocolombi/ACutils documentation built on March 3, 2023, 4:06 a.m.