Learn R Programming

evolqg (version 0.2-2)

AncestralStates: Fast estimation of ML ancestral stated for multivariate continous traits

Description

This function is a wrapper for using phytools::fastAnc on multivariate data.

Usage

AncestralStates(tree, x, ...)

Arguments

tree
phylogenetic tree
x
list of tip nodes data. Expects one vector for each terminal.
...
aditional arguments for phytools::fastAnc

Value

  • list with calculated ancestral states, using labels or numbers from tree

Examples

Run this code
data(dentus)
data(dentus.tree)
mean.list <- dlply(dentus, .(species), numcolwise(mean))
names(mean.list) <- dentus.tree$tip.label
AncestralStates(dentus.tree, mean.list)

Run the code above in your browser using DataLab