ggtree
ggtree copied to clipboard
How to add group information to nodes?
trafficstars
I produced a tree and added nodes to it:
library(ggtree)
library(treeio)
tree <- rtree(13,tip.label = c("A","B","C","D","E","F","G","H","I","J","K","L","M"))
set.seed(1234)
library(ape)
emp_tree <- makeNodeLabel(tree, method = "number", prefix = "Node")
groupInfo<-list(group1=c("A","B","C","D","E","Node1"),
group2=c("F","G","H","I","J","K","L","M"))
tree01 <-groupOTU(emp_tree,groupInfo)
as_tibble(tree01)
But I cannot add the group information to nodes (see the 'Node1'):

How can I change the group information of nodes?