Skip to content
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

how to color tip or branch based on an external data.frame with name corresponding to tip labels? #77

Open
tboonf opened this issue May 17, 2018 · 0 comments

Comments

@tboonf
Copy link

tboonf commented May 17, 2018

I have been trying a few other dendogram plotting programs and have been pleased with the flexibility of dendextend when used with ggplot. I am having difficulty in combining workflow with phyloseq.
Phyloseq offers the flexibility of performing unifrac and h.clustering, after which the result can be plotted in ggplot.

GPUF<-UniFrac(physeq, weighted = FALSE)
GP.hclust <- hclust(GPUF, method = "average")
dend <- as.dendrogram(GP.hclust)
ggplot(dend, horiz = T)

Can one passes the grouping info to dendextend so that the tip or branch can be color according to group?
Name group
A aaa
B aaa
C bbb
D ccc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant