Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/66.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R中的corrplot参数_R_Plot_R Corrplot - Fatal编程技术网

R中的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

我使用了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()
库(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?请检查答案。我想这就是你要找的。。?