get_intersect: Calculating character overlap

Description Usage Arguments Author(s)

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
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 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.

Author(s)

Philipp Resl

add example code

correlate intersect


reslp/correlate documentation built on March 19, 2018, 10:10 a.m.