View source: R/fwd.plot.prob.phen.R
plot_prob_phen | R Documentation |
p
and n.snps.assoc
.[*For use with the 'fwd.-.sim' functions:*]
Plot the cumulative probability of association (Pr(phen=1)), with a given value of p
,
as the number of associated sites (SNPi=1) increases from i=0 to i=n.snps.assoc
.
plot_prob_phen(p = 0.5, n.snps.assoc = 10)
p |
A numeric value indicating the probability of substitution, at each site, along the tree. |
n.snps.assoc |
An integer specifying the number of genetic loci that are associated with the phenotype. |
Caitlin Collins caitiecollins@gmail.com
## Not run:
## basic use of fn ##
## compare probability of having phenotype with 10 SNPs at varying p:
plot_prob_phen(p=0.8, n.snps.assoc=10)
plot_prob_phen(p=0.5, n.snps.assoc=10)
plot_prob_phen(p=0.2, n.snps.assoc=10)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.