-->

中的R corrplot参数(corrplot parameters in R)

2019-07-19 13:47发布

我已经使用了corrplot如下,但你可以看到我需要放大的圆圈内数字的字体大小,然后情节标题是不是在正确的位置和字体大小(不完全可见的),但我找不到参数他们。 我会很感激,如果你能有所帮助。

library(corrplot)

png(height=1200, width=1200, 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, diag=FALSE,
  addCoef.col = rgb(0,0,0, alpha = 0.6)
)

dev.off()

Answer 1:

这个问题似乎是与png()height=1200width=1200你提供的选项。 尝试改变该行:

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

默认pointsize = 12某种程度上降低了的字体labelstitle ,出于某种原因。

编辑:看到标题正确此参数添加到您的corrplot

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

所以整个命令集是:

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()


文章来源: corrplot parameters in R