geom_range for a subset of nodes

21 views
Skip to first unread message

Tiago Gräf

unread,
Jul 16, 2024, 4:03:20 PM7/16/24
to ggtree
Hello, 

I'm trying to plot the geom_range for a single node or a subset of nodes with this code:
t = t + geom_range(aes(subset=(node == c(123))), "height_0.95_HPD", color='gray', size=2, alpha=.5)

However I'm getting the following error:
Error in x[1] : object of type 'symbol' is not subsettable

Doing like this I get a tree with all height 95% HPD, but I would like to plot this parameter only for a selection of nodes. 
t = t + geom_range("height_0.95_HPD", color='gray', size=2, alpha=.5)

Does anyone could help me?

Thanks
Reply all
Reply to author
Forward
0 new messages