gghead | R Documentation |
This function appends parents that are not available in the first column of the pedigree, to the head of the pedigree, and sorts it. Given a pedigree with all missing parents replaced with the corresponding genetic groups, this functions appends genetic groups to the head of the pedigree.
gghead(ped)
ped |
: |
Consider this simple pedigree:
3 0 0
4 3 0
6 4 5
5 0 0
First, unknown parents are replaced with the corresponding genetic groups.
Please note that unknown parent IDs should be smaller than progeny IDs.
3 1 2
4 3 2
6 4 5
5 1 2
Then, gghead
is applied to this pedigree (see the example).
Processed pedigree data.frame
ped = data.frame(ID=c(3,4,6,5), SIRE=c(1,3,4,1), DAM=c(2,2,5,2)) gghead(ped)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.