15. Corr plot
corrplot 패키지를 이용하면 상관계수를 이용하여 그래프를 그릴 수가 있습니다.
xxxxxxxxxxCor_matrix = cor(iris[,1:4]) # iris는 R 기본 내장 데이터library(corrplot)corrplot(Cor_matrix , method = "color", outline = T, addgrid.col = "darkgray",order="hclust", addrect = 4, rect.col = "black",rect.lwd = 5,cl.pos = "b", tl.col = "indianred4",tl.cex = 1, cl.cex = 1, addCoef.col = "white",number.digits = 2, number.cex = 1,col = colorRampPalette(c("darkred","white","midnightblue"))(100))

댓글
댓글 쓰기