# a very simple example
genotypeMatrix = matrix(
c("GG", "GG", "GG", "CG", "CG", "GG",
"AA", "AA", "AA", "--", "AA", "AA",
"AA", "AA", "GG", "AA", "AA", "AA",
"GG", "AA", "GG", "GG", "GG", "GG"),
byrow=TRUE,
nrow=4,
ncol=6)
# Compute and plot the parent-offspring similarity for each offspring
ParentOffspring(genotypeMatrix)Run the code above in your browser using DataLab