我有以下代码,不确定如何使用它来显示一张热力图,并使用五种不同的颜色表示定义值的颜色键:
我很乐意为您提供帮助。谢谢! James
hm <- heatmap.2(data_matrix, scale="none",Rowv=NA,Colv=NA,col = rev(brewer.pal(11,"RdBu")),margins=c(5,5),cexRow=0.5, cexCol=1.0,key=TRUE,keysize=1.5, trace="none")
需要颜色关键字:
<0.3 (blue)
0.3-1 (green)
1-1.3 (yellow)
1.3-3.0 (orange)
>3.0 (red)
我很乐意为您提供帮助。谢谢! James
heatmaps.2
函数,所以我在RSeek上搜索了一下。第一个链接可能已经回答了你的问题。 - Gregor Thomas