Skip to contents

This function creates directional heatmaps for the associations between continuous and binary variables. It identifies continuous and binary variables in the dataset and computes correlations using appropriate methods.

Usage

PlotDirectionalHeatmaps(
  Data,
  xVars = NULL,
  yVars = NULL,
  Relabel = TRUE,
  Ordinal = TRUE
)

Arguments

Data

A dataframe containing the data to analyze.

xVars

A vector of variable names to be used on the x-axis. If NULL, all continuous and binary variables are included.

yVars

A vector of variable names to be used on the y-axis. If NULL, defaults to the same as xVars.

Relabel

Logical. If TRUE, variables are relabeled for better readability in the plots.

Ordinal

Logical. If TRUE, treats binary variables as ordinal for certain calculations (future functionality).

Value

A list containing two plots (Unadjusted and FDR Corrected), along with corresponding data.