2

我想制作相关数据的热图,而不是从 0.85 获得相关尺度,我想要从 0.90 开始。我需要知道如何调整这个比例。

在此处输入图像描述

我正在使用的命令是:

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) 
4

1 回答 1

2

也许我误解了你的问题,但我认为你可以使用休息参数。对我来说,它就像

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")
于 2012-05-22T14:10:57.177 回答