grow_off_leaf: Grow a tree at a given leaf node

Description Usage Arguments Value Examples

View source: R/editTree.R

Description

Add a pair of leaves branching off of the given leaf node for the tree. Asigns the two newly added leaves labels from node_names the old leaf where the two branches were add as an internal node.

Usage

1
grow_off_leaf(tree, leaf, node_names)

Arguments

tree

ape::phylo tree

leaf

node number

node_names

list of two node names

Value

new tree topology–two branches added to given leaf and labeled accordingly

Examples

1
2
tree <- grow_off_leaf(tree, 1, c('Fibroblasts', 'Fibrocytes'))
... some visualization 

ethanmoyer/MethylConstruct documentation built on July 10, 2020, 12:28 a.m.