I used heatmap.2(mat, Colv = TRUE, Rowv = TRUE)
to create a heatmap and got this:
I have a group of vectors: c("a","d"), c("b","c","e"),c("f","g")
and I want to allocate different color to each group, so that each member of a specific group in the dendogram will be colored in the specific color of its group.