cor_plot {creditmodel} | R Documentation |
Correlation Plot
Description
cor_plot
is for ploting correlation matrix
Usage
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
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)
[Package creditmodel version 1.3.1 Index]