label.tree.tips: 'label.tree.tips' Label tips of phylogeny according to node...

Description Usage Arguments Details Value Author(s)

View source: R/phylo.manip.R

Description

label.tree.tips Label tips of phylogeny according to node labels

Usage

1
label.tree.tips(tree, clade.mat = NULL)

Arguments

tree

ape::phylo object; must have node.label slot (otherwise there're no node labels to use!)

clade.mat

If not NULL (the default), the clade.mat slot of a caper::clade.matrix function call on the phylogeny to be labelled. You may already have this lying around, if so it speeds the function somewhat.

Details

Returns a named vector describing what node.label the tips in your phylogeny subtends from. Each tip will only be labelled by one node - the youngest. This is essentially a way of figuring out if a species is in a particular clade (e.g., Fagaceae) from node.labels in a phylogeny.

Value

Named vector describing tree.

Author(s)

Will Pearse


willpearse/willeerd documentation built on May 4, 2019, 6:27 a.m.