cor_heat_plot: Correlation Heat Plot

Description Usage Arguments Examples

View source: R/data_visualization.R

Description

cor_heat_plot is for ploting correlation matrix

Usage

1
2
3
4
5
6
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

1
2
3
4
5
6
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)

Example output

Package 'creditmodel' version 1.2.7
There were 12 warnings (use warnings() to see them)

creditmodel documentation built on Jan. 7, 2022, 5:06 p.m.