Skip to contents

This function creates an interactive heatmap of a correlation matrix. Hover labels display variable pairs and their correlation values.

Usage

cor_heatmap(cor_mat, exclude = NULL)

Arguments

cor_mat

Correlation matrix or a data frame.

exclude

(Optional) Variable(s) to exclude.

Value

A plotly heatmap object.

Details

The function accepts the output of cor_matrix() and optionally allows excluding selected variables from the visualization.

Examples

# Basic heatmap pipeline
cor_matrix(data = data) %>% cor_heatmap()
#> Error in cor_matrix(data = data) %>% cor_heatmap(): could not find function "%>%"