zygdist | R Documentation |
Calculates the distribution of an offspring dosages given
parental dosages (G1
and G2
), the ploidy of the
species (ploidy
), and the double reduction parameter
(alpha
).
zygdist(alpha, G1, G2, ploidy)
alpha |
A numeric vector containing the double reduction parameter(s).
This should be a
vector of length |
G1 |
The dosage of parent 1. Should be an integer between |
G2 |
The dosage of parent 2. Should be an integer between |
ploidy |
The ploidy of the species. This should be an even positive integer. |
A vector of probabilities. The i
th element is the
probability that the offspring will have dosage i-1
.
David Gerard
zygdist(alpha = c(0.5, 0.1), G1 = 4, G2 = 5, ploidy = 8)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.