check here :
ggplot2 and heatmap plus are two easy to handle R packages! Check them out:
Most likely you want to make a heatmap with the following options:
- Plot a dendrogram of clustering on both colums and rows of the heatmap
- Plot multiple sample information colors on rows or columns
- A legend that tells you how the intensity of the colors corresponds with the values that went into the heatmap
If you want all three of them, then you can either use ggplot2 but you will have difficulties with aligning the dendrogram plots with the heatmap. You will have to do something nasty like playing the viewport settings. Or you can go with the How Do I Draw A Heatmap In R With Both A Color Key And Multiple Color Side Bars?