This program computes the frequency of each allele and plots a histogram for the number of alleles with a given frequency. The distribution is expected to be L-shaped under mutation-drift equilibrium. When a factor is given, the program plots a histogram for each group.

eco.alfreq(eco, grp = NULL)

Arguments

eco

Object of class "ecogen".

grp

Optional factor (column of the S slot) for plots by group.

References

Luikart G., F. Allendorf, F. Cornuet, and W. Sherwin. 1998. Distortion of allele frequency distributions provides a test for recent population bottlenecks. Journal of Heredity, 89: 238-247.

Examples

# NOT RUN { data(eco.test) eco.alfreq(eco) eco.alfreq(eco, "pop") # }