YuLab-SMU / ggtree

:christmas_tree:Visualization and annotation of phylogenetic trees
https://yulab-smu.top/treedata-book/
833 stars 173 forks source link

ggtree collapse all but #504

Open antoine4ucsd opened 2 years ago

antoine4ucsd commented 2 years ago

Hello I have a big tree (n=29k tips) from which I would like to highlight some clades I defined those clades in the meta which looks like that: image

mytree2 <- mytree %<+% meta

then plot it

mytree + geom_tippoint(aes(color=clades,fill=clades)

but as you can see in the attached image, it is too dense. My goal would be to collapse ALL but these taxa. can you help with that? also is there a way to filter prune tree based on edge.length?

test1