plot_corr.Rd
Returns correlation plot for all the columns in dataset
plot_corr(data, corr = "pearson", pair_cols = NULL)
a dataframe
type of correlation: 'spearman', 'kendall' or 'pearson'
: a character vector od columns for which you want correlation plot
corr_plot, a ggplot chart object
data <- data.frame(age = c(1, 2, 4, 6, 8),education.num = c(3, 6, 12, 18, 24), target=c(20, 30, 12, 0, 2))
plot_corr(data, corr = 'pearson', pair_cols=c('age', 'education.num'))
#> Registered S3 method overwritten by 'GGally':
#> method from
#> +.gg ggplot2
plot_corr(data)