corrplot绘图的text label不能用label参数,对相关矩阵的colname和rowname进行更改就
上下标签可以用 ":", "=" or "$".
下标:":a[0]"
上标:":a^'+'" 注意,上标要放在单引号里面
M <- cor(mtcars)[1:5,1:5]
colnames(M) <- c("alpha", ":beta^'+'", ":alpha+beta", ":a[0]", "=a[beta]")
rownames(M) <- c("alpha", "beta", NA, "$a[0]", "$ a[beta]")
corrplot::corrplot(M)

网友评论