Description Usage Arguments Value
Simulation of multi-locus genetic data from the spatial F-model
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
nindiv |
Simulation of multi-locus genetic data from the spatial F-model |
coordinates |
Matrix (2 rows, nindiv columns) of spatial coordinates of individuals |
coord.lim |
Vector of limits of spatial domain to be considered (x min, x max, y min, y max) |
number.nuclei |
Integer: number of nuclei in the Voronoi tessellation |
coord.nuclei |
Coordinates of nuclei of Voronoi tessellation |
color.nuclei |
Population labels of the nuclei (vector of integers of size number.nuclei) |
nall |
Vector of integers giving number of alleles at each locus |
npop |
Number of populations |
freq.model |
model for frequencies:"Correlated" or "Uncorrelated" |
drift |
Vector (of size |
dominance |
A character string "Codominant" or "Dominant". If "Dominant" is chosen, the first allele is treated as a recessive allele and all heterozigous are converted into homozigous for the dominant allele. The presence of the "dominant" allele is coded as 1, the absence of the "dominant" allele is coded as 0. |
plots |
Logical: if TRUE, spatial coordinates are ploted |
ploth |
Logical: if TRUE, barplots for allele frequencies are ploted |
A list of variables involved in the simulation. The elements of this list are: coordinates, genotypes, allele.numbers, number.nuclei, coord.nuclei, color.nuclei, frequencies, ancestral.frequencies, drifts, index.nearest.nucleus
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.