phen.sim | R Documentation |
The parameter n.subs controls the simulation of the phenotype by specifying the expected value of the number of phenotypic substitions to occur on the tree provided. The true number of phenotypic substitions is drawn from a Poisson distribution with parameter n.subs.
phen.sim(tree, n.subs = 15, grp.min = 0.2, n.subs.var = TRUE, seed = NULL)
tree |
An phylo object. |
n.subs |
An integer controlling the phenotypic substition rate (see details). |
grp.min |
An optional numeric value < 0.5 specifying the minimum accepted proportion of terminal nodes
to be in the minor phenotypic group. It may be useful to specify a |
seed |
An optional integer used to set the seed and control the pseudo-random process used in
|
Longer proper discription of function...
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.