Description Usage Arguments Examples
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 2 | 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 state names which should be analysed for the first set of characters. |
chars1 |
Vector containing character state names which should be analysed for the second set of characters. |
1 | get_intersect(ntrees = 1, nmaps = 1, smap1 = simmap, smap2 = simmap_multi, chars2 = c(0, 1), chars1 = c(0, 1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.