dot-correlation_map_common: Internal helper to build a correlation heatmap from a numeric...

.correlation_map_commonR Documentation

Internal helper to build a correlation heatmap from a numeric matrix

Description

Internal helper to build a correlation heatmap from a numeric matrix

Usage

.correlation_map_common(
  DM,
  method = c("pearson", "spearman"),
  half_matrix = FALSE,
  absolute_limits = TRUE,
  ...
)

Arguments

DM

A numeric matrix of regressors (columns).

method

Correlation method, passed to stats::cor() (e.g. "pearson" or "spearman").

half_matrix

Logical; if TRUE, show only the lower-triangle (including diagonal).

absolute_limits

Logical; if TRUE, force the fill color scale to -1..+1.

...

Additional arguments passed to geom_tile().

Value

A ggplot2 object.


bbuchsbaum/fmrireg documentation built on March 1, 2025, 11:20 a.m.