coalsplit {genealogy} | R Documentation |
Generate a tree with split times
Description
Generate a coalescent tree for multiple populations
when the populations split from a base population in the past.
Usage
coalsplit(n,split)
Arguments
n |
The sample size n . |
split |
The scaled split time split . |
Value
Returns an object of class poptree
with
components
t |
The coalescence times |
d1 |
The labels of "left" descendents |
d2 |
The labels of "right" descendents |
location |
The location of samples. |
See Also
coal1
,coalmig
mutate
Examples
m1 <- coalsplit(c(10,10,10,10,10),split=0.5);
plot(m1);
[Package
genealogy version 0.01
Index]