#
# From vectors with counts of genotypes
#
data(TSIXTriAllelics)
ma <- as.matrix(TSIXTriAllelics[1,2:4])
names(ma) <- c("A","B","C")
fe <- TSIXTriAllelics[1,5:10]
names(fe) <- c("AA","AB","AC","BB","BC","CC")
fe <- HardyWeinberg:::toTriangularfixed(fe)
HWNetwork(ma=ma,fe=fe)
Run the code above in your browser using DataLab