make_bladj_tree: Use the BLADJ algorithm to get a chronogram from a tree...

View source: R/make_bladj_tree.R

make_bladj_treeR 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.


datelife documentation built on July 10, 2023, 2:02 a.m.