相关热图

时间:2012-05-22 13:29:06

标签: r heatmap

我想制作相关数据的热图,而不是从0.85得到相关比例,我希望它从0.90。我需要知道如何调整这个比例。

enter image description here

我使用的命令是:

data<-read.table("data_corr", header=T) 
tiff('corrheatmap.tiff')
library(gplots)
z<-cor(data)
lowColor = "purple" #change this if you want
highColor = "blue" #change this if you want
colorMin = 0 # I have made this 0.9 and also 90 in any case I don't see the difference
heatmap.2(z, Rowv=FALSE, Colv=FALSE, dendrogram="none", key=TRUE, density.info="none", trace="none", col=colorpanel(100, lowColor, highColor), scale="none", cexRow=0.15, cexCol=0.15) 

1 个答案:

答案 0 :(得分:2)

也许我误解了你的问题,但我认为你可以使用break参数。对我而言,它就像

一样
heatmap.2(z, breaks = seq(0.9, 1, 0.001), Rowv=FALSE, Colv=FALSE, dendrogram="none", key=TRUE, density.info="none", cexRow = 0.15, cexCol = 0.15, col=colorpanel(100, lowColor, highColor), trace="none")