【发布时间】:2019-10-03 00:49:46
【问题描述】:
我使用了下面的 R 列表并得到了一个非常好的heatmap:
png( "test-8.png", width =800 , height =750 )
heatmap(1-cor(df),distfun=function(x){as.dist(x)},symm=F,Rowv=NULL, Colv=NULL)
dev.off()
但它的分辨率很低。谷歌搜索后,我找到了可能的解决方案:
png( "test-8.png", width =800 , height =750,res=600 )
heatmap(1-cor(df),distfun=function(x){as.dist(x)},symm=F,Rowv=NULL, Colv=NULL)
dev.off()
不幸的是,我在代码执行后收到了错误消息:
Error in par(op) : invalid value specified for graphical parameter "pin"
Calls: heatmap -> par
Execution halted
我该如何管理它?任何建议将不胜感激。
【问题讨论】:
-
如果你能让这个可以重现就好了。
-
您是否尝试增加高度和宽度?我不知道当您将图像缩小到小于 2x2 英寸时会发生什么
-
@rawr 太棒了!这正是原因。