-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add prune_cutree_to_dendlist? #61
Comments
Hi Tal, thanks again for this function! Just one more question. Say I want to make an heatmap of cluster 1 using heatmap.2,
What about the ordering? In your function you use order_clusters_as_data = FALSE, how can I re-arrange the dendrogram so that when I add it to the rows in heatmap.2 the dendrogram actually corresponds to the data (apology for the silly question, I am very new to dendextend). |
Hi @lucacerone |
Hi @talgalili, actually what I wanted to do (which also originated my original question in stackoverflow) is to zoom "as is" on a heatmap. The fact is that if I re-run hclust some sub-pattern that appear in the heatmap with the overall data, can change position and it is harder in a presentation to explain that what they are looking for is exactly the same as before, just with a different re-arrangement. I'll surely have a look at heatmaply soon :) |
Hi @lucacerone the best way to zoom in into the heatmap (unless using heatmaply, which allows for interactive zooming) is to pick the subset of items in the cluster and run the heatmap with that sub dendrogram and subset of the data. Here is an example code for how to do it using the new get_dendrograms function:
|
Thank you so much Tal! This is really helpful! |
I'm glad that you find it helpful :)
…On Jan 22, 2018 11:49, "Luca Cerone" ***@***.***> wrote:
Thank you so much Tal! This is really helpful!
Cheers!
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#61 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA7khhIieEu9b656sfm7Zk92q6XG_LnFks5tNFmtgaJpZM4RY1LV>
.
|
Answers:
https://stackoverflow.com/questions/48167369/r-getting-subtrees-from-dendrogram-based-on-cutree-labels/48180908#48180908
The text was updated successfully, but these errors were encountered: