I am drawing a heatmap of differentially expressed genes in R using heatmap()
function.
I want to show my 88 row names at the side that I am showing my clustering/dendrogram (left side). They are now on the opposite sides.
in Heatmap()
, it could be done using row_names_side = "left"
and row_hclust_side = "left"
, BUT I want its option in heatmap()
.
This is the script I am using:
heatmap(as.matrix(data.prop), Rowv = as.dendrogram(row.clus), Colv = NA, col = scaleyellowred, margins = c(10, 3))