Description Usage Arguments Author(s)

View source: R/get_intersect.R

This function calculates the overlapping parts of two (or more) sets of stochastically mapped categorical characters. As input it takes two sets of stochastic maps created with the R package phytools. It will return the proportion of the tree where two characters overlap.

1 | ```
get_intersect(ntrees = 1, nmaps = 1, smap1 = simmap, smap2 = simmap_multi, chars2 = c(0, 1), chars1 = c(0, 1))
``` |

`ntrees` |
The number of trees which should be analysed. default = 1 |

`nmaps` |
The number of stochastic character maps which should be analysed per tree. default = 1 |

`smap1` |
List of multiPhylo Objects containing stochastic maps for first character. Created with phytools. |

`smap2` |
List of multiPhylo Objects containing stochastic maps for second character. Created with phytools. |

`chars2` |
Vector containing character states which should be analysed for the first set of characters. |

`chars1` |
Vector containing character states which should be analysed for the second set of characters. |

Philipp Resl

add example code

correlate intersect

reslp/correlate documentation built on March 19, 2018, 10:10 a.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.