Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Siblings shuffled for no reason #9

Open
magnusdv opened this issue Mar 24, 2022 · 0 comments
Open

Siblings shuffled for no reason #9

magnusdv opened this issue Mar 24, 2022 · 0 comments

Comments

@magnusdv
Copy link

Hi,

I was wondering why, in the pedigrees below, sisters 3 and 4 are displayed in the wrong order. I understand that siblings are sometimes shuffled to improve the overall display, but in these symmetrical cases I cannot see any reason for doing so.

I think I have tracked the behaviour down to autohint(), but it is not clear to me what exactly this tries to optimize, nor why it is overzealous in my examples.

First example:

library(kinship2)
x = pedigree(id    = 1:6,
             dadid = c(0,0,1,1,1,1),
             momid = c(0,0,2,2,3,4),
             sex   = c(1,2,2,2,1,1))
plot(x)

Another example:

y = pedigree(id    = 1:7,
             dadid = c(0,0,1,1,0,5,5),
             momid = c(0,0,2,2,0,3,4),
             sex   = c(1,2,2,2,1,1,1))
plot(y)

Created on 2022-03-24 by the reprex package (v2.0.1)

All the best,
Magnus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant