EcoGenetics (version 1.2.1-5)

eco.alfreq: Allelic frequency histograms for an ecogen genetic data frame

Description

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.

Usage

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

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

# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace