hints
matrix
which helps to reorder the pedigree (e.g. left-to-right order of
children within family) so as to plot with minimal distortion.
This routine trys out a large number of configurations, finding the
best by brute force.
besthint(ped, wt=c(1000, 10, 1), tolerance=0)
Assume that a pedigree has k founding couples, i.e., husband-wife pairs for
which neither has a parent in the pedigree.
The routine tries all k!/2 possible left to right orderings of the founders
(in random order), uses the
autohint
function
to optimize the order of children within each family, and computes a
score.
The hints matrix for the first pedigree to match the tolerance
level is returned, or that for the best score found if none match the
tolerance.
# Find a good plot, only trying to avoid dotted connectors myped$hints <- besthint(myped, wt=c(1000,100,0))