YuLab-SMU / ggtree

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

geom_hilight based on node name [&&NHX:S=CladeName] #539

Open francicco opened 1 year ago

francicco commented 1 year ago

Hi,

I'm trying to annotate a very large gene tree. I have multiple occurrences of the same taxa distributed across the tree. The internal node names contain that information [&&NHX:S=CladeName]. I was wondering if would be possible to apply geom_hilight() based on the information of that node.

Thanks a lot Francesco

diegotrindade commented 1 year ago

Hi,

I was wondering the same and found the answer here. Check the example shown in 10.3 - function nodeid()