- data
A data frame containing numeric variables.
- vars
Optional character vector specifying which variables to include.
If NULL (default), all numeric columns will be used.
- method
Character. Correlation method: "pearson" (default), "spearman",
or "kendall".
- use
Character. Method for handling missing values, passed to cor().
Default is "pairwise.complete.obs". Other options: "everything",
"all.obs", "complete.obs", "na.or.complete".
- p_adjust_method
Character. Method for p-value adjustment for multiple
testing. Default is "none". Options: "holm", "hochberg", "hommel",
"bonferroni", "BH", "BY", "fdr", "none". See p.adjust.
- sig_level
Numeric vector. Significance levels for star annotations.
Default is c(0.001, 0.01, 0.05) corresponding to ***, **, *.
- type
Character. Type of heatmap: "full" (default), "upper", or "lower".
- show_coef
Logical. Display correlation coefficients on the heatmap?
Default is FALSE.
- show_sig
Logical. Display significance stars on the heatmap?
Default is TRUE.
- hc_order
Logical. Reorder variables using hierarchical clustering?
Default is TRUE.
- hc_method
Character. Hierarchical clustering method if hc_order = TRUE.
Default is "complete". See hclust.
- palette
Character. Color palette name from evanverse palettes.
Default is "gradient_rd_bu" (diverging Red-Blue palette, recommended for
correlation matrices). Set to NULL to use ggplot2 defaults.
Other diverging options: "piyg", "earthy_diverge", "fire_ice_duo".
- lab_size
Numeric. Size of coefficient labels if show_coef = TRUE.
Default is 3.
- title
Character. Plot title. Default is NULL (no title).
- show_axis_x
Logical. Display x-axis labels? Default is TRUE.
- show_axis_y
Logical. Display y-axis labels? Default is TRUE.
- axis_x_angle
Numeric. Rotation angle for x-axis labels in degrees.
Default is 45. Common values: 0 (horizontal), 45 (diagonal), 90 (vertical).
- axis_y_angle
Numeric. Rotation angle for y-axis labels in degrees.
Default is 0 (horizontal).
- axis_text_size
Numeric. Font size for axis labels. Default is 10.
- verbose
Logical. Print diagnostic messages? Default is TRUE.
- ...
Additional arguments (currently unused, reserved for future extensions).