用逗号作为小数点分隔符的corrplot

时间:2020-08-18 10:19:06

标签: r decimal comma

是否可以绘制带有小数点并用逗号分隔的corrplot? 我可以使用圆圈和p值制作混合corrplot,但是我想用逗号分隔小数。

这是我的代码:

data<-read.delim(file.choose(), sep='\t', header = T)
mat<-cor(data, use= "pairwise.complete.obs", method = "spearman")
library(corrplot)
library(extrafont)
tiff("caption.tiff", units="in", width = 8, height = 8, res=600)
res1<-cor.mtest(data, use="pairwise.complete.obs", method="spearman", exact=FALSE)
corrplot.mixed(mat, p.mat = res1$p, insig = "label_sig", sig.level=c(.001, .01, .05), pch.cex = 1.3, pch.col = "yellow", tl.cex = 0.8, tl.col = "black", number.cex= .7, family="Times New Roman")
dev.off()

0 个答案:

没有答案