Learn R Programming

RRphylo (version 3.0.0)

rateHistory: Computing historical rates

Description

The function calculates historical rates for each tip of the tree. Historical rates represent the sum of rates along subsequent branches of a lineage. The product of these rates multiplied by the relative branch lengths represents the phenotypic transformation from one node to the next one along the path. The function also provides the sum of rate modulus along lineages. This represents the total amount of evolutionary change per lineage.

Usage

rateHistory(RR)

Value

The function returns the vector of net historical rates ($rateHistory$net.rate) and the sum of rate modulus for each tip ($rateHistory$norm.rate), and the matrix of phenotypic changes from one node to the next along each lineage (phen.path).

Arguments

RR

an object fitted by the function RRphylo.

Author

Pasquale Raia, Silvia Castiglione

Examples

Run this code
if (FALSE) {
data("DataCetaceans")
DataCetaceans$treecet->treecet
DataCetaceans$masscet->masscet
cc<- 2/parallel::detectCores()

RRphylo(tree=treecet,y=masscet,clus=cc)->RRcet

rateHistory(RR=RRcet)->rh

    }

Run the code above in your browser using DataLab