R中的corrplot参数
我使用了corrplot,如下所示,但正如您所见,我需要放大圆圈内数字的字体大小,然后绘图标题的位置和字体大小不正确(不完全可见),但我找不到它们的参数。如果你能帮忙,我将不胜感激R中的corrplot参数,r,plot,r-corrplot,R,Plot,R Corrplot,我使用了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(da
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()
库(corrplot)
png(高度=1200,宽度=1200,file=“overlap.png”)
col1问题似乎出在您提供的height=1200
和width=1200
选项的png()
上。尝试将该行更改为:
png(height=1200, width=1200, pointsize=25, file="overlap.png")
由于某种原因,默认的pointsize=12
以某种方式减少了标签
和标题
的字体
编辑:要正确查看标题,请将此参数添加到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)
png(高度=1200,宽度=1200,点大小=25,file=“overlap.png”)
col1@Arun,现在我认为它是可复制的。我需要更改圆圈内文本的字体大小。但它们可能与其他一些参数成比例。在我的Rstudio
上,它打印得非常好!问题似乎在于png
中的height=
和width=
参数。如果您删除它,它会提供良好的结果。更好的方法是使用pdf(“myfile.pdf”)
@Arun甚至是标题?您是否也使用了png和dev.off?请检查答案。我想这就是你要找的。。?