-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get the node number #586
Comments
You can get them with tree <- rtree(10)
ggtree(tree) + geom_text(aes(label = node), hjust = -0.5) # node number
ggtree(tree) + geom_nodelab(aes(label = node), hjust = -0.5) # just internal node number
ggtree(tree) + geom_tiplab(aes(label = node), hjust = -0.5) # just tip number The |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Dr. Yu,
I am trying to annotate my tree in ggtree. Do you happen to know How I can get the node number?
Is there a way to plot tree with tip/internal node numbers?
Thanks a lot
The text was updated successfully, but these errors were encountered: