Data Visualization with ggplot2 (#part 1)

ggplot is based on grammer of graphics (gg), which means you can draw every graph with few basic components like: a data set a set of geom or geometry – which represents the data points a coordinate system You can marge you data points with aes or aesthetic components to provide a beautiful graphical visualization.Continue reading “Data Visualization with ggplot2 (#part 1)”

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 correlationContinue reading “Doing correlation in R using corrplot”