View source: R/p_tool_star_tree.r
gen.star.tree | R Documentation |
Generate a rooted tree with a star shape based on a sequence calls of several functions.
gen.star.tree(N, total.height = 1)
N |
number of leaves. |
total.height |
total tree height. |
A tree with a star shape means that all internal branches are 0 and all leaf branches are equal.
This function combining with gen.seq.HKY
or gen.seq.SNP
is used in simulation studies and bootstrap tree samples
Return a rooted tree in Class phylo
with a star shape.
Wei-Chen Chen wccsnow@gmail.com
Phylogenetic Clustering Website: https://snoweye.github.io/phyclust/
ms
.
as.star.tree
,
get.rooted.tree.height
.
rescale.rooted.tree
.
as.phylo
,
plot.phylo
.
## Not run:
library(phyclust, quiet = TRUE)
ret.star <- gen.star.tree(5)
plot(ret.star, type = "u")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.