Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 R 热图功能中关闭颜色平滑?在 R 中绘制相关性热图时,我一直在尝试关闭平滑以获得白色对角线。
这就是我正在使用的:
(h <- round(cor(data[,c(83,3:39)],use = "pairwise.complete.obs"),2)) heatmap(h,Colv = NA, Rowv = NA)
尝试设置scale = "none"关闭矩阵值的默认缩放。
scale = "none"