collapse_tree: Collapse a set of nodes in a ggtree object

View source: R/ggtree_function_extensions.R

collapse_treeR Documentation

Collapse a set of nodes in a ggtree object

Description

Given a list of nodes, collapse these nodes in a ggtree object

Usage

collapse_tree(tree, nodes, type = "max", colours = "none")

Arguments

tree

Tree object

nodes

List of internal nodes to collapse

type

Type of collapsing to run - "min", "max" or "mixed". [Default = "max"]

colours

List of hex colours to colour the collapsed cones, order of the colours corresponds with the list of nodes given [Default = "none"]

Value

Tree object with requested tips pruned out

Examples

remove_tips_from_tree(tree_object, list_of_tips)

djw533/micro.gen.extra documentation built on Nov. 8, 2024, 5:11 a.m.