expand: expand

View source: R/clade-functions.R

expandR Documentation

expand

Description

expand collapsed clade

Usage

expand(tree_view = NULL, node)

Arguments

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

Value

tree view

Author(s)

Guangchuang Yu

See Also

collapse

Examples

x <- rtree(15)
p <- ggtree(x) + geom_tiplab()
p1 <- collapse(p, 17)
expand(p1, 17)

YuLab-SMU/ggtree documentation built on April 15, 2024, 5:19 p.m.