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

Incorrect pedigree plot #13

Open
magnusdv opened this issue Dec 29, 2022 · 2 comments
Open

Incorrect pedigree plot #13

magnusdv opened this issue Dec 29, 2022 · 2 comments

Comments

@magnusdv
Copy link

Hi,
I wonder if the latest CRAN version of kinship2 introduced a bug affecting alignment in some cases.
Below is an example shown both versions.

Any idea what's going on? A fix would be much appreciated!
Thanks for your good work.
-M

Version 1.8.5 (correct)

library(kinship2, quietly = T)
packageVersion("kinship2")
#> [1] '1.8.5'

x = pedigree(id = 1:7, dad = c(0,0,0,1,3,0,3), mom = c(0,0,0,2,4,0,6), sex = c(1,2,1,2,1,2,1))
plot(x)

Version 1.9.6 (wrong)

library(kinship2, quietly = T)
packageVersion("kinship2")
#> [1] '1.9.6'

x = pedigree(id = 1:7, dad = c(0,0,0,1,3,0,3), mom = c(0,0,0,2,4,0,6), sex = c(1,2,1,2,1,2,1))
plot(x)

#> Did not plot the following people: 7

Created on 2022-12-29 with reprex v2.0.2

@sinnweja
Copy link
Member

sinnweja commented Dec 30, 2022 via email

@alexkrohn
Copy link

I too am having problems plotting a certain pedigree where one individual is plotted as floating without offspring even though the pedigree information says they have offspring. It doesn't seem to resolve itself by resorting back to an earlier version of kinship. Here's the input dataset.

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

3 participants