fwd.phen.sim | R Documentation |
[*An exploratory function:*] Having already simulated a genotype, this function allows you to simulate an associated phenotype along the tree, from root to tips.
fwd.phen.sim(snps.assoc, p = 1, tree = NULL)
snps.assoc |
A matrix created by the |
p |
An integer specifying the probability of phenotypic substition, given genotypic substitution (see details). |
tree |
An phylo object. |
The parameter p
controls the simulation of the phenotype by specifying
the expected value of the number of phenotypic substitions to occur on the tree provided,
given that a genotypic substitution has occurred on a particular branch of the tree.
Caitlin Collins caitiecollins@gmail.com
## basic use of fn
tree <- coalescent.tree.sim(n.ind = 100, seed = 1)
## plot output
plot(tree)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.