PLD_stat_mig: Dispersal statistics

Description Usage Arguments Value Examples

View source: R/pack_Phylogeo_Functions_g.R

Description

Function that lists the dispersal events from the genealogies sampled by the MCMC.

Usage

1
PLD_stat_mig(x, sub_sample = 0, first = FALSE)

Arguments

x

an object of class "phyloland" generated by a call to PLD_interface.

sub_sample

a vector of integers that specifies the indexes of the trees and locations to take into account to list the dispersals events. Default is 0, all trees and locations are considered.

first

a logical value. If TRUE only the oldest dispersal to a location is taken into account. If FALSE all dispersals are taken into account.

Value

migmat

a matrix containing the number of occurences of each dispersal event (departures in rows and destinations in columns).

timemat

a 3-dimensional (a*b*c) array with (a) the departure locations, (b) the destination locations and (c) the time (node height) of the dispersal from (a) to (b).

Examples

1
2
3
4
data(Banza)
stat = PLD_stat_mig(x = Banza, sub_sample = 100:200, first = TRUE)
stat$migmat
stat$timemat[,,100]

phyloland documentation built on May 2, 2019, 6:46 a.m.