### Example with realistic data
x = avuncularPed() |>
profileSim(markers = NorwegianFrequencies, seed = 1729)
checkPairwise(x)
### Create an error: sample swap 1 <-> 3
als = getAlleles(x)
als[c(1,3), ] = als[c(3,1), ]
y = setAlleles(x, alleles = als)
checkPairwise(y)
# \donttest{
# Combined plot of pedigree and IBD estimates
dev.new(height = 5, width = 8, noRStudioGD = TRUE)
layout(rbind(1:2), widths = 2:3)
plot(y, margins = c(4,2,4,2), title = "Swapped 1 - 3")
checkPairwise(y, labels = TRUE)
# }
Run the code above in your browser using DataLab