-
Notifications
You must be signed in to change notification settings - Fork 7
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
inclusion of birth year in plotted pedigrees #8
Comments
Have you tried to specify a vector for the color?
In the help file for pedigree() the object bped.id8 is created (40 people). The following code assigns them color 1-5.
plot(bped.id8,col=sample(1:5,40,replace=T))
Also, you can have up to 4 different 'affected' values (so someone could be a quarter of each) - simply provide a matrix with up to 4 columns.
…________________________________
From: Dejan S. ***@***.***>
Sent: Sunday, March 13, 2022 10:56 PM
To: mayoverse/kinship2 ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [EXTERNAL] [mayoverse/kinship2] inclusion of birth year in plotted pedigrees (Issue #8)
Hello,
thank you for making kinship2 - i've found the plotting of pedigrees very helpful.
One question i can't seem to resolve is how to incorporate additional information into the plotted pedigrees. For example, i would love to color my plots by year of birth but there doesn't seem to be any way to do this. I know that the plots can be shaded/unshaded by affected status, but this is limited to a 0/1 option as far as i can tell. I have a pedigree that spans several breeding attempts by birds in successive years, and hence colouring each brood by year would be really informative.
Also, i seem to have a couple of issues that i can't explain in my pedigrees. For instance, there's randomly repeated individuals individuals in my pedigrees (e.g. M0046 in the image below) and also the shapes don't correspond to the sexes specified in my pedigree files.
[Rplot01]<https://user-images.githubusercontent.com/93886982/158102120-951e0111-db91-40f8-b9be-724b5f3391cf.jpeg>
Any suggestions would be much appreciated.
thanks,
D
—
Reply to this email directly, view it on GitHub<#8>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ACWQG5ZKVPE5LAZCUHV7PI3U722FPANCNFSM5QULC33Q>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
thank you for making kinship2 - i've found the plotting of pedigrees very helpful.
One question i can't seem to resolve is how to incorporate additional information into the plotted pedigrees. For example, i would love to color my plots by year of birth but there doesn't seem to be any way to do this. I know that the plots can be shaded/unshaded by affected status, but this is limited to a 0/1 option as far as i can tell. I have a pedigree that spans several breeding attempts by birds in successive years, and hence colouring each brood by year would be really informative.
Also, i seem to have a couple of issues that i can't explain in my pedigrees. For instance, there's randomly repeated individuals individuals in my pedigrees (e.g. M0046 in the image below) and also the shapes don't correspond to the sexes specified in my pedigree files.
Any suggestions would be much appreciated.
thanks,
D
The text was updated successfully, but these errors were encountered: