get_intersect: Calculating character overlap for two independent stochastic...

Description Usage Arguments Examples

View source: R/get_intersect.R

Description

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.

Usage

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

Arguments

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.

Examples

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

reslp/correlate documentation built on Aug. 29, 2019, 11 a.m.