cor_heat_plot {creditmodel}R Documentation

Correlation Heat Plot

Description

cor_heat_plot is for ploting correlation matrix

Usage

cor_heat_plot(
  cor_mat,
  low_color = love_color("deep_red"),
  high_color = love_color("light_cyan"),
  title = "Correlation Matrix"
)

Arguments

cor_mat

A correlation matrix.

low_color

color of the lowest correlation between variables.

high_color

color of the highest correlation between variables.

title

title of plot.

Examples

train_test = train_test_split(UCICreditCard,
split_type = "Random", prop = 0.8,save_data = FALSE)
dat_train = train_test$train
dat_test = train_test$test
cor_mat = cor(dat_train[,8:12],use = "complete.obs")
cor_heat_plot(cor_mat)

[Package creditmodel version 1.3.0 Index]