Skip to contents

The function takes a tree topology and uses the BLADJ algorithm implemented with phylocomr::ph_bladj() to assign node ages and branch lengths, given a set of fixed node ages and respective node names.

Usage

make_bladj_tree(tree = NULL, nodenames = NULL, nodeages = NULL)

Arguments

tree

A tree either as a newick character string or as a phylo object.

nodenames

A character vector with names of nodes in tree with known ages

nodeages

A numeric vector with the actual ages of named nodes

Value

A phylo object.

Details

Input tree can be dated or not, $edge.length is ignored. Ages given in nodeages are fixed on their corresponding nodes given in nodenames.