td-filter
filter data for tree annotation layer
td_filter(..., .f = NULL)
... |
Expressions that return a logical value. |
.f |
a function (if any, default is NULL) that pre-operate the data |
The 'td_filter()' function returns another function that can be used to subset ggtree() plot data. The function can be passed to the 'data' parameter of geom layer to perform subsetting. All rows that satisy your conditions will be retained.
A function to filter ggtree plot data using conditions defined by '...'.
Guangchuang Yu
tree <- rtree(30) ## similar to 'ggtree(tree) + geom_tippoint()' ggtree(tree) + geom_point(data = td_filter(isTip))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.