Skip to contents

The rows and the columns contain variable names, while the heatmap tiles contain Pearson correlation coefficient and corresponding colours.

Usage

corr_heatmap(df, color_neg, color_pos)

Arguments

df

dataframe. 2-D dataframe.

color_neg

string. The color for the negative correlation.

color_pos

string. The color for the positive correlation.

Value

The heatmap.

Details

The inputs must be a 2-D data frame

Examples

corr_heatmap(mtcars[, c(1,3,4,5,6,7)])