Description Usage Arguments Details Value Author(s) References Examples

This function uses stochastic mapping and ancestral state reconstruction to determine if the derived state of a binary trait originates when a continuous trait has an extreme value.

1 |

`trees` |
tree(s) of class phylo or multiPhylo |

`data` |
a dataframe with 3 columns. The first should match the taxa names in the tree, the second should have the continuous trait values and the third the states for the binary character |

`derived.state` |
the derived condition for the binary trait |

`iterations` |
the number of iterations to be used in estimating significance |

This function uses stochastic mapping and ancestral state reconstruction as implemented in phytools to determine if the derived state of a binary trait originates when a continuous trait has an extreme value. This test assumes that the derived state of the binary character may lead to correlated selection in the continuous trait. Because of this the ancestral state reconstruction of the continuous trait is based only on data from species that remain in the ancestral condition for the binary trait

Returns a plot of the null distribution and the observed data as well as empirical p-value for the observed data.

Heath Blackmon and Richard H. Adams

http://coleoguy.github.io/

1 2 3 4 5 6 | ```
## Not run:
data(mite.trait)
data(trees.mite)
AncCond(trees, mite.trait, derived.state = "haplodiploidy", iterations=100)
## End(Not run)
``` |

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.