I have 2 tables: table 1: rows- samples, columns- bacterias- square in place (i,j) describes the frequency of the bacteria j in sample i.
table2 : rows- samples, columns- type (3 options: type1/type2/type3)
I have created an heatmap from the first table with this code:
heatmap<-pheatmap(data.for.heatmap2,color = brewer.pal(9,"Blues"),
show_rownames = F, cluster_cols = F)
Now, I want to add the classification from the second table to the heatmap. The classification is something like this:
How can I do it? Thanks!