I used the following code to create a heatmap using Heatmap.2 R. key = "F" gets rid of the color key at the top. However, the plot does not re-scale, leaving an empty space in the place previously occupied by the color key. How to return an object to the plot, getting rid of the empty space at the top?
dImp_heatmap <- heatmap.2(dSet_matrix, Rowv=NA, Colv=NA, col = cm.colors(20), dendrogram="none",trace="none", key="F",margins=c(1,8),colsep=c(1:6),rowsep=(1:62),sepwidth=c(0.05,0.05), sepcolor="white", cellnote=round(dSet_matrix,digits=2),notecol="black",notecex=0.7,scale="column")
lochi source share