make_bladj_tree {datelife}R Documentation

Use the BLADJ algorithm to get a chronogram from a tree topology for which you have age data for some of its nodes.

Description

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

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.

Value

A phylo object.


[Package datelife version 0.6.8 Index]