raivokolde / pheatmap

Pretty heatmaps
225 stars 83 forks source link

annotations doesnt show and no error message #87

Open mariamaseng opened 2 years ago

mariamaseng commented 2 years ago

Thanks for an amazing package!

I want to annotate my heatmap, and are doing it this way: anno = t(data.frame(df[,c("disease")])) table(anno) #check that it is successfull and it is

ph = pheatmap(df, annotation = anno) ph

My problem is that the annotations doesn't show and I am not getting any error message. Really appreciate help with this!

KeelyDulmage commented 2 years ago

Ah! I'm also having this problem! I've made hundreds of pheatmaps in my day with no issues so I feel a little crazy.
I checked that my heatmap column IDs are identical to my column annotation df rownames, but I don't see any annotation boxes on the figure.

Strangely, if I transpose my annotation df I don't get any errors either, which I definitely should!

p1 <- pheatmap(aanormdb3, color = viridis(15), annnotation_col = t(subsanno), show_rownames = F ) p1

Using 1.01.12 under R 4.2.0. Rstudio 2022.02.2 Build 485