Open richelbilderbeek opened 5 years ago
Yes, it is a bug. This bug was caused by supporting phyloseq
object, we need to allow node duplications, see https://github.com/GuangchuangYu/ggtree/blob/master/R/method-fortify.R#L185.
So that I have a setup_tree_data function to keep non-duplicated one for drawing branches and labels, etc.
So, in your case, only tip labels of tree_1 were plotted.
If I fixed this bug, then I should remove the support of phyloseq
.
I will think about it to figure out a better way. Don't hesitate to let me know, if you have ideas.
It now works in my fork. See #222 . Though I think this functionality should be available in ggtree proper at some point.
Prerequisites
Describe you issue
Hi @GuangchuangYu, thanks for
ggtree
! There is some behavior that I think may be incorrect. I hope you can fix that, or my misunderstanding :+1:. Cheers, @richelbilderbeekHere is the reprex:
The tree created by
ggtree
shows that C is the outlier in both cases:This is a plot I would have expected, in which B and C are outliers each once:
Ask in right place