label.tree.nodes: 'label.tree.nodes' Label nodes of phylogeny according to tip...

Description Usage Arguments Details Value Note Author(s)

View source: R/phylo.manip.R

Description

label.tree.nodes Label nodes of phylogeny according to tip labels

Usage

1
label.tree.nodes(tree, groups, clade.mat = NULL)

Arguments

tree

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

groups

The groups to be painted onto the nodes

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 the node.label of a phylogeny should be to match the tips. It's essentially a ppor man's ancestral state reconstruction, such that you can paint values for species onto the clade that contains them all on a phylogeny. For instance, if you know thirty species are in Fagaceae, it will paint those labels onto a clade subtending from them.

Value

Vector of labels; could be put straight into an ape::phylo object in the node.label slot.

Note

A friend of label.tree.tips

Author(s)

Will Pearse


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