makePolytomy: makePolytomy

View source: R/makePolytomy.R

makePolytomyR Documentation

makePolytomy

Description

This function collapses nodes under a certain support value into a polytomy

Usage

makePolytomy(tree = NULL, polytomy.limit = NULL)

Arguments

tree

phylogenetic tree from ape read.tree in phylo format

polytomy.limit

the threshold for collapsing a node into a polytomy

Value

phylogenetic tree in phylo format, with the nodes collapsed into polytomies.

Examples


your.tree = ape::read.tree(file = "file-path-to-tree.tre")
new.tree = makePolytomy(tree = your.tree, polytomy.limit = 10)


chutter/AstralPlane documentation built on Aug. 29, 2024, 5:21 p.m.