I have created a heatmap for the genes expression across different samples. I need to compute the scale bar of the dendrogram for my heatmaps which shows how the hierarchically clustered samples are similar to each other.
Does anybody knows how can I do that using heatmap2 function in R?
Have you tried googling for this? This page might be helpful.