random_newick | R Documentation |
Generate a random binary graph
random_newick(n, start = "", end = "", outpop = NULL)
n |
The number of terminal nodes, or a vector of population labels. |
start |
Prefix. |
end |
Postfix. |
outpop |
Outgroup (if |
Tree in newick format.
random_newick(5)
random_newick(c('a', 'b', 'c', 'd')) # toplogy random, but pop order fixed
random_newick(sample(c('a', 'b', 'c', 'd'))) # toplogy and pop order random
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.