prepare_cell_labels: Prepare cell labels in ggcorrhm to pass to gghm

View source: R/ggcorrhm.R

prepare_cell_labelsR Documentation

Prepare cell labels in ggcorrhm to pass to gghm

Description

Prepare cell labels in ggcorrhm to pass to gghm

Usage

prepare_cell_labels(
  mode,
  cell_labels,
  p_values,
  cell_label_p,
  cell_label_digits,
  p_thresholds = NULL,
  cor_mat_dat = NULL
)

Arguments

mode

Plotting mode.

cell_labels

Cell labels (TRUE, FALSE, matrix, data frame).

p_values

Logical indicating if p-values should be computed.

cell_label_p

Logical indicating if cell labels should be swapped for p-values.

cell_label_digits

Number of digits to display for cell labels.

p_thresholds

P-value thresholds.

cor_mat_dat

Correlation long format data from correlation tests.

Value

Object to use as cell_labels in gghm (containing a logical, a matrix/data frame, or a list of length 2 with those things).


ggcorrheatmap documentation built on Aug. 25, 2025, 1:11 a.m.