Closed thoree closed 1 year ago
The problem here is that the haplotypes were drawn outside the margins.
As of e2fd834 the margins are adjusted automatically, so this should be ok now. For example:
library(ibdsim2, quietly = T)
x = avuncularPed("u", "ni") |>
addSon(parents = c(3,6))
sims = ibdsim(x, N = 1, seed = 123, verbose = F)
# Default position: Below
haploDraw(x, sims, chrom = 1, cols = 2:7)
# Better positions
haploDraw(x, sims, chrom = 1, cols = 2:7, pos = c(2,4,1,1,1,1,2))
Created on 2022-12-17 with reprex v2.0.2
I need to remove (change?) the
pos
argument to see the colorinGCreated on 2022-06-14 by the reprex package (v2.0.1)