mayoverse / kinship2

Pedigree creation, plotting, and analytics
GNU General Public License v2.0
13 stars 7 forks source link

optimising drawing of large pedigree #7

Open GuyReeves opened 2 years ago

GuyReeves commented 2 years ago

HI

I am trying to draw a large pedigree but by even limiting the pedigree to only breeding pairs I am struggling. I have tried different import orders but nothing changes. Do you have any advice through which breeding pairs would be placed closer to each other? Or a way the labels could be made readable?

Thanks

Guy

Cex =0.2 2006l_0.2.pdf

sinnweja commented 2 years ago

Can you try something with the hints for spouse pairing, as done in the open issue from a month ago? Note that the plotting with many multiple marriages is not guaranteed to work, but it's worth a shot. The other suggestion I have is to use pedigree.shrink() to get the pedigree to the most informative subjects, given affected statuses.

sp = rbind(c(1,2), c(2,3), c(3,4), c(4,5), c(6,7), c(7,8), c(8,9), c(10,11), c(11,12), c(13,14)); x$hints = list(order = 1:15, spouse = cbind(sp, 0)); plot(x)

GuyReeves commented 2 years ago

Thanks for this But if I have no re-marriage, isn't specifying "relation=" just providing the same information as in the"dadid=" + "momid"?