Open zihhuafang opened 3 years ago
Zih-Hua, the function pedigree.legend is limited to the "x" argument of the regular legend function, e.g., "topright", "bottomleft". I understand the frustration, which is why I tried to work up a better legend with the legendPlot() function.
` data(sample.ped) pedAll <- pedigree(sample.ped$id, sample.ped$father, sample.ped$mother, sample.ped$sex, affected=cbind(affected=sample.ped$affected, avail=sample.ped$avail), famid=sample.ped$ped)
ped2 <- pedAll['2'] plot(ped2)
pedigree.legend(ped2, location="topright")
legendPlot(ped2) `
Hi @sinnweja,
Thank you for developing kinship2 package. I found it extremely useful for plotting pedigrees, and it's a time saver!
I plotted my pedigree (see attached file) but would like to modify certain plotting parameters. I am wondering if you could advise me how to tailor plot.pedigree as I did not fully understand autohints function.
Which parameter can be used to align a spouse without children to the same level of the other one of the couple? I ran autohint not sure what to change here.
Which parameter can be used to provide the coordinate of the legend placement? Is it possible other than "location"?
Appreciate your input!! Best wishes, Zih-Hua
Rplot02.pdf