Correlation Using ggcorrplot

#The hypothetical data frame, #Lets say, >A <- c(2, 4, 6, 8, 12, 5, 7,8) >B <- c(4,5,6,2,9,13,2, 6) >C <- c(3,5,7,2,4,8,3,6) >D <- c(4,6,2,5,7,4,6,9) DD <- data.frame(A,B,C, D) #correlation with package ggcorrplot - installing the package and importing the library install.packages("ggcorrplot")library("ggcorrplot") #doing the correlation test using pearson method and assigning the results to variable… Continue reading Correlation Using ggcorrplot

Doing correlation in R using corrplot

#Creating a imaginary data frame Lets say >A <- c(2, 4, 6, 8, 12, 5, 7,8) > B <- c(4,5,6,2,9,13,2, 6) > C <- c(3,5,7,2,4,8,3,6) >D <- c(4,6,2,5,7,4,6,9)DD <- data.frame(A,B,C, D) #correlation with package corrplot > install.packages("corrplot") library("corrplot") #doing the correlation test and plotting the matrix #we have assigned the result of the correlation to… Continue reading Doing correlation in R using corrplot