AvoBind {avotrex}R Documentation

AvoBind - Bind extinct species to the tree

Description

Binds an extinct species at a randomly selected point along a branch, after truncating either end.

Usage

AvoBind(tree, node, per, per_fixed = FALSE, sp_name)

Arguments

tree

Tree object (i.e., phylogeny)

node

Target node

per

The fraction (0-1) of total branch length to truncate at either end of the branch for grafting (e.g. 0.2 cuts of 20% of the total branch length from either end) if per_fixed == FALSE. If per_fixed == TRUE, then the point along the branch where the grafting occurs: value between 0-1, with a larger number meaning the grafting occurs closer to the rootward end of the branch

per_fixed

Logical argument: whether to graft a species on at an exact point along a branch (TRUE), which is chosen using the per argument, rather than random (FALSE; default)

sp_name

Name of the grafted species

Value

Returns a tree of class "phylo", with the extinct species grafted on.


[Package avotrex version 1.0.0 Index]