calcchanges: Calculates all phenotypic changes that occur on all branches...

Description Usage Arguments Details Value References Examples

View source: R/calcchanges.R

Description

Calculates the Euclidean distance between all ancestors and descendants on a phylogeny to reconstruct the phenotypic changes that occur along all edges of a phylogeny.

Usage

1
calcchanges(phyl, phendata)

Arguments

phyl

The phylogeny of interest in phylo format

phendata

A matrix of phenotypic data for all tips, with taxa in rows and characters in columns.

Details

Calculates the Euclidean distance between all ancestors and descendants on a phylogeny to reconstruct the phenotypic changes that occur along all edges of a phylogeny.

Value

A vector in which each element represents an edge of the phylogeny, and the values are the magnitudes of evolutionary change that occur along those edges.

References

Paradis, E., J. Claude, and K. Strimmer (2004) APE: Analyses of phylogenetics and evolution in R langauge. Bioinformatics, 20, 289-290.

Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol. 3 217-223.

Examples

1
2
3
phyl<-rtree(10)
phendata<-fastBM(phyl,nsim=5)
changes<-calcchanges(phyl,phendata)

convevol documentation built on May 2, 2019, 6:53 a.m.