cor_plot: Correlation Plot

Description Usage Arguments Examples

View source: R/data_visualization.R

Description

cor_plot is for ploting correlation matrix

Usage

1
2
3
4
5
6
7
8
cor_plot(
  dat,
  dir_path = tempdir(),
  x_list = NULL,
  gtitle = NULL,
  save_data = FALSE,
  plot_show = FALSE
)

Arguments

dat

A data.frame with independent variables and target variable.

dir_path

The path for periodically saved graphic files. Default is "./model/LR"

x_list

Names of independent variables.

gtitle

The title of the graph & The name for periodically saved graphic file. Default is "_correlation_of_variables".

save_data

Logical, save results in locally specified folder. Default is TRUE

plot_show

Logical, show graph in current graphic device.

Examples

1
2
3
4
5
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_plot(dat_train[,8:12],plot_show = TRUE)

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