simGammaHaps | R Documentation |
Simulate a haplotypic frequency distribution based on a specified gamma distribution.
simGammaHaps(pop.size, num.haps, shape, scale, return.freq = TRUE, plot = TRUE)
pop.size |
size of population. |
num.haps |
number of haplotypes to generate. |
shape , scale |
parameters of Gamma distribution (see |
return.freq |
logical. Return frequency table of haplotypes? If |
plot |
logical. Show plot of haplotypic frequency distribution? |
Frequency table of haplotypes.
Eric Archer eric.archer@noaa.gov
haps <- simGammaHaps(1000, 15, 1, 2.5)
print(haps)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.