Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/simul.pedigree.r
This function can be used to simulate a pedigree for a given number of generations and individuals. Function assumes random mating within generations. Inbred individuals may be generated by chance.
1 | simul.pedigree(generations = 2, ids = 4, animals = FALSE, familySize = 1)
|
generations |
|
ids |
|
animals |
|
familySize |
|
If animals=FALSE
, the parents for the current generation will be
randomly chosen out of the genotypes in the last generation. If Par1 = Par2,
an inbreed is generated. If animal=TRUE
, each ID is either sire or
dam. Each ID is progeny of one sire and one dam.
An object of class pedigree
with N=sum(ids) genotypes.
Valentin Wimmer
simul.phenotype
, create.pedigree
,
plot.pedigree
1 2 3 4 5 6 | # example for plants
ped <- simul.pedigree(gener = 4, ids = c(3, 5, 8, 8))
plot(ped)
# example for animals
peda <- simul.pedigree(gener = 4, ids = c(3, 5, 8, 8), animals = TRUE)
plot(peda)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.