Description Usage Arguments Value
Given a collection of lineages, all of the same genotype, sample from their locations across previous generations, given the entire set of reproductive numbers in those generation.
1 | simulate_lineages(lineages, gens, num.alleles, demog, ...)
|
lineages |
A two-column matrix with columns labeled 'location' and 'genotype'. |
gens |
A list as returned by |
num.alleles |
A vector giving the number of alleles of the type followed in each genotype. |
demog |
The demography object that contains migration matrices used to make the simulation. |
... |
Other parameters passed to |
An array of dimensions c(dim(lineages),length(gens$times))
,
in the SAME order as gens$times, so that if x is the output,
x[,,1] records lineage locations at the *most distant* time,
x[,1,1] gives the index of the spatial locations, and
x[,2,1] gives the index of the genotypes of the lineages.
See plot_lineages for how to recover coordinates of the lineages.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.