小编luc*_*.hd的帖子

.External.graphics R中的错误

我使用下面的函数从48列X 32行的矩阵创建热图:

heatmap.2(all.data,Rowv = FALSE, Colv = FALSE, trace="none",main="All data",col=colorRampPalette(c("green","yellow","red")))
Run Code Online (Sandbox Code Playgroud)

由于去除了树形图,它给了我一些警告,但它仍然给了我想要的热图以及颜色键,发生了一些事情,现在当我尝试运行它时,它给了我没有颜色键的情节和错误:

Error in plot.new() : figure margins too large
In addition: Warning messages:
1: In heatmap.2(all.data, Rowv = FALSE, Colv = FALSE, trace = "none",  :
  Discrepancy: Rowv is FALSE, while dendrogram is `both'. Omitting row dendogram.
2: In heatmap.2(all.data, Rowv = FALSE, Colv = FALSE, trace = "none",  :
  Discrepancy: Colv is FALSE, while dendrogram is `none'. Omitting column dendogram.
Run Code Online (Sandbox Code Playgroud)

如果我将所有边的边距更改为1:

par(mar=c(1,1,1,1))
heatmap.2(all.data,Rowv = FALSE, Colv = FALSE, trace="none",main="All …
Run Code Online (Sandbox Code Playgroud)

r heatmap

9
推荐指数
2
解决办法
3万
查看次数

标签 统计

heatmap ×1

r ×1