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