library(corrplot) mt_used <- cor(mtcars) corrplot(as.matrix(df_used_here), type = "upper", '#只画上三角 method = "number", #格子里是数值 diag = FALSE, #不包含对角线 addgrid.col = "black", #格子线的颜色 tl.col = "black", #行名列名的颜色 tl.cex = 1, #行名列名的大小 tl.srt = 90, #列名的角度 number.cex = 1.2, #格子中数值的字体大小 number.font = 2) #格子中数值的字体;2 为黑体![]()
Note: 可以用
cl.pos = "n"来指定移除图例![]()










网友评论