To cite HardyWeinberg in publications use:

Graffelman J (2015). “Exploring Diallelic Genetic Markers: The HardyWeinberg Package.” Journal of Statistical Software, 64(3), 1–23. https://www.jstatsoft.org/v64/i03/.

Graffelman J, Morales-Camarena J (2008). “Graphical tests for Hardy-Weinberg Equilibrium based on the ternary plot.” Human Heredity, 65(2), 77–84.

Corresponding BibTeX entries:

  @Article{,
    title = {Exploring Diallelic Genetic Markers: The {HardyWeinberg}
      Package},
    author = {Jan Graffelman},
    journal = {Journal of Statistical Software},
    year = {2015},
    volume = {64},
    number = {3},
    pages = {1--23},
    url = {https://www.jstatsoft.org/v64/i03/},
  }
  @Article{,
    title = {Graphical tests for Hardy-Weinberg Equilibrium based on
      the ternary plot},
    author = {Jan Graffelman and Jair Morales-Camarena},
    journal = {Human Heredity},
    year = {2008},
    volume = {65},
    number = {2},
    pages = {77--84},
  }