getCladeMonophyly: Monophyly statistics of a clade in a list of trees

Description Usage Arguments Value Warning See Also

View source: R/tree_utils.R

Description

Function that returns the probsbility of the clade defined by the tips in tips to be monophyletic in a list of trees. If the input tree is a single phylogenetic tree of class "phylo" the function returns 0 or 1. If the input is a "multiPhylo" object then the proportion of trees in which the clade is monophyletic is returned. This function uses the is.monophyletic function.

Usage

1

Arguments

trees

A single tree of class "phylo" or a set of trees of class "multiPhylo"

tips

A vector of tips in the tree(s). Could either be numeric (tip numbers) or a character vector (taxon names).

Value

A floating point number between 0 and 1 giving the probability that the clade is monophyletic.

Warning

If any of the tips are not present in any of the trees the function will crash.

See Also

is.monophyletic


laduplessis/beastio documentation built on Dec. 14, 2021, 7:04 p.m.