View source: R/clade-functions.R
expand | R Documentation |
expand collapsed clade
expand(tree_view = NULL, node)
tree_view |
tree view (i.e. the ggtree object). If tree_view is NULL, the last ggplot object will be used. |
node |
internal node number to specify a clade. If NULL, using the whole tree |
tree view
Guangchuang Yu
collapse
x <- rtree(15)
p <- ggtree(x) + geom_tiplab()
p1 <- collapse(p, 17)
expand(p1, 17)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.