This function calculates correlations between variables and plots them as a heatmap.
Usage
PlotCorrelationsHeatmap(
Data,
xVars = NULL,
yVars = NULL,
covars = NULL,
method = "pearson",
Relabel = TRUE,
Ordinal = FALSE
)
Arguments
- Data
The dataset containing the variables.
- xVars
A character vector of the names of the x-axis variables.
- yVars
A character vector of the names of the y-axis variables. Defaults to NULL.
- covars
A character vector of the names of covariate variables. Defaults to NULL.
- method
The correlation method. Defaults to "pearson".
- Relabel
A logical indicating whether to relabel variables. Defaults to TRUE.
- Ordinal
Logical, indicating whether ordinal variables should be included.
- FS
The font size for the plot. Defaults to 3.