Learn R Programming

ggcorrheatmap (version 0.1.2)

prepare_cell_labels: 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
)

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).

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.