View source: R/kinship2_alignped1.R
| kinship2_alignped1 | R Documentation |
This is an internal helper function for pedigree alignment. It processes a single subject (founder or not) along with their spouse(s), building up the alignment structure. This function is called recursively by kinship2_align.pedigree to construct the entire pedigree layout.
kinship2_alignped1(x, dad, mom, level, horder, packed, spouselist)
x |
Integer vector of subject ID(s) to process |
dad |
Integer vector of father indices |
mom |
Integer vector of mother indices |
level |
Integer vector indicating the generation level of each subject |
horder |
Numeric vector of hint order for positioning subjects |
packed |
Logical, if TRUE uses compact packing algorithm |
spouselist |
Matrix defining spouse relationships |
A list containing:
nid |
Matrix of subject IDs at each level and position |
pos |
Matrix of horizontal positions |
fam |
Matrix of family indices |
n |
Vector of counts per level |
spouselist |
Updated spouse list |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.