I need to build a correlation matrix, and I'm trying to adjust some parameters to adapt the graph. I am using the corrplot package.
I built the corrplot matrix as follows:
corrplot(cor(d1[,2:14], d1[,2:14]), method=c("color"), bg = "white", addgrid.col = "gray50", tl.cex=1, type="lower", tl.col = "black", col = colorRampPalette(c("red","white","blue"))(100))
I need to show the correlation values in the bottom matrix inside the color matrix that I built. How can i do this?
The diagonal of the correlation matrix is always 1, and so I would like to know whether it is possible to exclude the main diagonal from the lower matrix?
I would also like to show significant correlation values using stars instead of squares. For example, ( * , ** , *** ). Is it possible?
source share