YuLab-SMU / ggtree

:christmas_tree:Visualization and annotation of phylogenetic trees
https://yulab-smu.top/contribution-tree-data/
839 stars 172 forks source link

Error: 'reroot' is not an exported object from 'namespace:ggtree' #454

Open clementcoclet opened 2 years ago

clementcoclet commented 2 years ago

I installed ggtree and ggplot using:

devtools::install_github(c("hadley/ggplot2", "GuangchuangYu/ggtree"))

But I still have this error:

Error: 'reroot' is not an exported object from 'namespace:ggtree'

When I try to lunch th command:

tree2 <- ggtree::reroot(tree, 101) plot(tree2)

xiangpin commented 2 years ago

The reroot of ggtree has been replaced by the root (for treedata class) of treeio, you can refer to the chapter