我想使用R中的heatmaply包为我的数据集(3109行和12列)创建交互式热图图,但得到以下错误: 如果我删除rownames我不会得到错误但我需要至少在图中的每个点看到名称!你能帮我吗? 谢谢。
subset of my matrix:d
h0_R2.log2 h0_R4.log2 h0_R5.log2 h12_R2.log2 h12_R4.log2
Ltb4r1 -12.42500 -12.42500 -12.42500 -4.47485 -4.32845
Gm34606 -0.04179 -0.11605 0.12281 -12.42500 -12.42500
LOC102634439 -4.82458 -4.89884 -5.07503 -12.42500 -12.42500
LOC102637286 -12.42500 -12.42500 -12.42500 -12.42500 -12.42500
Kcnj16 -1.70357 -1.49772 -2.06093 -12.42500 -12.42500
clus1 <- hclust(dist(d))
d2 <- d[clus1$order,]
heatmaply(d2 , xlab = "", revC = TRUE, na.rm = TRUE, titleX = FALSE )
Error in rotate.dendrogram(dend, order = rev(labels(x)
[seriation::get_order(o)])) :
'order' is neither numeric nor a vector with ALL of the labels (in the order
you want them to be)