subPed | R Documentation |
Creates a subset of a large pedigree that includes only individuals related with specified individuals in a predefined way.
subPed(Pedig, keep, prevGen=3, succGen=0)
Pedig |
Data frame containing the pedigree where the first 3 columns correspond to: Individual ID, Sire, and Dam. More columns can be passed in the |
keep |
Vector with IDs of individuals. Only these individuals and individuals related with them in a predefined way will be kept in the pedigree. |
prevGen |
Number of previous (ancestral) generations to be included in the pedigree. |
succGen |
Number of succeeding (descendant) generations to be included in the pedigree. |
This function creates a subset of a large pedigree that includes only individuals related with the individuals specified in the vector keep
in a predefined way.
A data frame containing the reduced pedigree. A column keep
is appended indicating which individuals were included in parameter keep
.
Robin Wellmann
data(PedigWithErrors)
sPed <- subPed(PedigWithErrors, keep="276000891974272", prevGen=3, succGen=2)
sPed
label <- c("Indiv", "Born", "Breed")
pedplot(sPed, mar=c(2,4,2,4), label=label, cex=0.7)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.