collapse.ggtree {ggtree}R Documentation

collapse-ggtree

Description

collapse a clade

Usage

## S3 method for class 'ggtree'
collapse(x = NULL, node, mode = "none", clade_name = NULL, ...)

Arguments

x

tree view (i.e. the ggtree object). If tree_view is NULL, the last ggplot will be used.

node

internal node number

mode

one of 'none', 'max', 'min' and 'mixed'

clade_name

set clade name. If clade_name = NULL, do nothing

...

additional parameters

Value

tree view

Author(s)

Guangchuang Yu

See Also

expand


[Package ggtree version 3.2.0 Index]