Data Analytics, Machine Learning, Business Analytics, Regression Analysis, Knowledgebase Analytics.
Load required libraries install.packages("car") library(car) library(corrplot) # Scatter plot matrix pairs(mtcars) # Pearson correlation cor(mtcars$mpg, mtcars$wt) # Correlation matrix corrplot(cor(mtcars), method = 'number') Correlation matrix (mtcars) using corrplot Once a model is fit using