# NOT RUN {
library(HardyWeinberg)
# draw random SNPs from a population that is in HWE
set.seed(123)
m <- 100 # number of markers
n <- 100 # sample size
X <- HWData(n,m)
out <- HWTernaryPlot(X,100,region=1,vertex.cex=2,signifcolour=TRUE)
# }
Run the code above in your browser using DataLab