simul.pedigree {synbreed} | R Documentation |
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.
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
# 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)