1

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))
zx8754
  • 52,746
  • 12
  • 114
  • 209
Farbod
  • 67
  • 3
  • 12
  • NOTE: I have the same issue in pheatmap(). – Farbod Dec 18 '16 at 11:53
  • [How to make a great R reproducible example?](http://stackoverflow.com/questions/5963269) – zx8754 Dec 21 '16 at 08:38
  • Dear zx8754, Hi and Thanks. I did not get the point. – Farbod Dec 22 '16 at 09:15
  • Please provide reproducible data, on R console type `dput(data.prop)`, and copy paste the output to this post. So we have a data to make plots, so that we can reproduce the same "problems". The `data.prop` doesn't have to be your real data, it can be dummy data as long as it is representative of the real data. – zx8754 Dec 22 '16 at 09:18

0 Answers0