0
热地图中删除CSEP /非数字的错误,我有一个看起来像这样的数据:如何同时产生R中
Cluster_Combined Cluster_1 Cluster_2 Cluster_3 Cluster_4 Cluster_6 Cluster_10
G-protein coupled receptor signaling pathway (15) 2 6 0 4 3 1 0
GTP catabolic process (69) 1 0 0 0 2 0 0
activin receptor signaling pathway (17) 0 2 0 0 0 0 0
acute inflammatory response (7) 2 1 0 0 1 0 0
acute-phase response (8) 5 2 1 0 2 0 0
aging (5) 2 1 2 0 1 0 1
,我想创建热图,基于上述值,其中的列是指集群名称并将本体术语排列。
现在我有以下
library(gplots);
dat <- read.table("http://dpaste.com/1505883/plain/",sep="\t",header=T);
hmcols <- rev(redgreen(2750));
heatmap.2(as.matrix(dat),scale="row",cols=hmcols,trace="none",dendrogram="none",keysize=1);
代码虽然它产生的情节,它给了我下面的错误:
Error in csep + 0.5 : non-numeric argument to binary operator
此外,我不能看到红 - 绿效果情节。
如何删除错误?