1

我在 heatmap.2 和 d3heatmap 中做了一个热图,具有相同的参数和配色方案;但是,heatmap.2 显示出更强烈的颜色,而 d3heatmap 中的颜色看起来已褪色。知道我做错了什么吗?

    hmcol<- colorRampPalette(brewer.pal(9, 'GnBu'))(100)[enter image description here][1]
    heatmap.2(assay(vst_tissue[head(order(-rowVars(assay(vst_tissue))),500),]),
         col = hmcol, Rowv = TRUE, Colv = TRUE, scale='none', dendrogram='both', trace='none')
    d3heatmap(assay(vst_tissue[head(order(-rowVars(assay(vst_tissue))),500),]),
         col = hmcol, Rowv = TRUE, Colv = TRUE, scale='none', dendrogram='both', trace='none')  
4

0 回答 0