Skip to contents

Create a heatmap of the correlation matrix of a data frame, created using cor().

Usage

correlation_plot(data, show_text = FALSE)

Arguments

data

The data to plot

show_text

Whether to show the correlation number over each panel in the heatmap.

Value

A ggplot2::ggplot() object.

Examples

correlation_plot(mtcars)

correlation_plot(mtcars, show_text = TRUE)