繁体   English   中英

heatmap.2不显示颜色键

[英]heatmap.2 does not show the color key

我的代码:

heatmap.2(cor_r, cellnote = sym2, notecol = "black", key = T, keysize = 0.5, key.par = list, Rowv = as.dendrogram(hclust.signs), Colv = as.dendrogram(hclust.areas), trace = "none", margins = c(10,10), col = my_palette, breaks = col_breaks, lmat=rbind(4:3,2:1))

两个问题:

  1. 没有显示颜色键。
  2. 当我重新运行代码时,RStudio崩溃了。

虽然不知道为什么,但是“ breaks = col_breaks”是原因。 删除此部分将使一切正确。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM