기본 콘텐츠로 건너뛰기

글

라벨이 2.15 Corr Plot인 게시물 표시

2.15 Corr Plot

15. Corr plot corrplot 패키지 를 이용하면 상관계수를 이용하여 그래프를 그릴 수가 있습니다. xxxxxxxxxx Cor_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 ))