Description Usage Arguments Value

View source: R/brownian_motion_package.r

This function computes the square root of the phylogenetic distance between each species in the tree and one other specified species. Assuming the true model is Brownian motion with no rate shifts, the distributions of trait change from a given species to any other species should be identical when divided by the square root of the distance between the two species.

1 | ```
compute.sqrt.dist(phy, norm = 1, species = phy$tip.label[-norm])
``` |

`phy` |
ape format phylogeny |

`norm` |
the species to which distances are computed |

`species` |
a vector of species names for which to compute distances |

A vector of square root of the distance between each species and norm

PIGShift documentation built on May 29, 2017, 11:20 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.