build_coal_tree | R Documentation |
Generate a Newick string representation of a tree corresponding to a realisation of a coalescent process. Note: the topology is RANDOM, If you wish for the topology to be consistent, use set.seed before calling this function.
build_coal_tree(
sampling_times,
coalescent_times,
leaf_names = NULL,
node_name_prefix = "N",
terminate_string = TRUE
)
sampling_times |
times of leaves. |
coalescent_times |
times of coalescent events / internal nodes. |
a Newick string corresponding to the tree.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.