I want to extract the structure values of a heatmap plot but I don't need to plot the heatmap.
Is there a way to do that? The function I used is heatmap
.
dm<-matrix(1:100,nrow=10)
ht<-heatmap(dm)
v1<-ht$rowInd
v2<-ht$colInd
v3<-ht$rowV
v4<-ht$colV
as you can see from the above, the heatmap was plotted. I am wondering if there is way to extract v1 to v4 without plot ht. Thanks.