Automatically generate alignment hints for pedigree plotting
Source:R/kinship2_autohints.R
kinship2_autohint.RdThis function automatically generates alignment hints for pedigree plotting. Hints control the relative horizontal positioning of subjects within their generation and the placement of spouse pairs. The function handles twins, multiple marriages, and complex pedigree structures. It is a somewhat optimized version of kinship2's autohint.
Value
A list containing:
- order
Numeric vector of relative ordering hints for subjects
- spouse
Matrix of spouse pair information
Details
The function is called automatically by kinship2_align.pedigree if no hints are provided. It analyzes the pedigree structure, identifies twins, handles multiple marriages, and determines optimal subject ordering to minimize crossing lines and produce aesthetically pleasing plots.
Full documentation is available in the align_code_details vignette.