Hi, I am trying to overlay a dendrogram on top of an image plot, but I run into the problem of the nodes at the root of the dendrogram not aligning properly with the columns on my image. A simple solution to do this is to use the function heatmap which automatically plots the tree on the top but my matrix is really big (7000 by 700) and heatmap function takes forever and when I draw it by image function it takes much less time. So my question is, how do you control the distance between the nodes at the root of a dendrogram. I think if I can do that and have them all spaced equally then I can easily overlay it on top of my image plot. thank you very much, AG [[alternative HTML version deleted]]
Hi, I am trying to overlay a dendrogram on top of an image plot, but I run into the problem of the nodes at the root of the dendrogram not aligning properly with the columns on my image. A simple solution to do this is to use the function heatmap which automatically plots the tree on the top but my matrix is really big (7000 by 700) and heatmap function takes forever and when I draw it by image function it takes much less time. So my question is, how do you control the distance between the nodes at the root of a dendrogram. I think if I can do that and have them all spaced equally then I can easily overlay it on top of my image plot. thank you very much, AG [[alternative HTML version deleted]]