corrplot parameters in R

五迷三道 提交于 2019-11-29 11:28:35

The problem seems to be with the png() with the height=1200 and width=1200 options you provide. Try changing that line to:

png(height=1200, width=1200, pointsize=25, file="overlap.png")

The default pointsize = 12 somehow reduces the fonts of the labels and title, for some reason.

Edit: To see the title properly add this parameter to your corrplot:

mar=c(0,0,1,0)

So the entire command set is:

library(corrplot)
png(height=1200, width=1200, pointsize=25, file="overlap.png")
col1 <-rainbow(100, s = 1, v = 1, start = 0, end = 0.9, alpha = 1)
test <- matrix(data=c(20:60),nrow=7,ncol=7)
corrplot(test,tl.cex=3,title="Overlaps Between methods",
method="circle",is.corr=FALSE,type="full",
cl.lim=c(10,100),cl.cex=2,addgrid.col=
"red",addshade="positive",col=col1, addCoef.col = rgb(0,0,0, alpha =
0.6), mar=c(0,0,1,0), diag= FALSE) 
dev.off()
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!