Learn R Programming

phyclust (version 0.1-9)

gen.star.tree: Generate a rooted tree with a star shape

Description

Generate a rooted tree with a star shape based on a sequence calls of several functions.

Usage

gen.star.tree(N, total.height = 1)

Arguments

N
number of leaves.
total.height
total tree height.

Value

  • Return a rooted tree in Class phylo with a star shape.

Details

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

References

Phylogenetic Clustering Website: http://thirteen-01.stat.iastate.edu/snoweye/phyclust/

See Also

ms. as.star.tree, get.rooted.tree.height. rescale.rooted.tree. as.phylo, plot.phylo.

Examples

Run this code
ret.star <- gen.star.tree(5)
plot(ret.star, type = "u")

Run the code above in your browser using DataLab