freq1 <- hwefreq(r = 0.5, alpha = 0, ploidy = 4)
freq2 <- hwefreq(r = 0.5, alpha = 1/6, ploidy = 4)
plot(x = 0:4,
y = freq1,
type = "h",
ylim = c(0, 0.4),
xlab = "dosage",
ylab = "Pr(dosage)")
plot(x = 0:4,
y = freq2,
type = "h",
ylim = c(0, 0.4),
xlab = "dosage",
ylab = "Pr(dosage)")
Run the code above in your browser using DataLab