I am trying to produce a heatmap to display clustering of similar rows in
the data given below. For each given row, different colors are used to
represent the corresponding column value. I want to display the values of
the colors in the form of a color key added to the heatmap. Is there anyway
of doing this?
Also, is it possible to get the order in which the rows will be clustered ,
starting with the first rows joined into a group and then followed by other
grps added. I thought i could extract the order by using $rowInd, but looks
like it's the order in which the rows are reordered in the map. Please let
me know how to do this.