ArtPoon/ggfree

tree: rooting the tree might break count.tips()

Closed this issue · 1 comments

Issue raised by user, need to confirm

MRE:

> require(ggfree)
> set.seed(1)
> phy <- rtree(10)
> count.tips(phy)
[1] 10  9  4  3  2  5  2  3  2
> phy <- root(phy, 't1')  # does not actually reroot the tree
> count.tips(phy)
[1]  3  2 NA NA NA NA NA NA