Learn R Programming

phyloTop (version 2.1.2)

rtree4: Random phylo4 tree

Description

Creates a random phylo4 tree, in parallel to ape's rtree function.

Usage

rtree4(n, ...)

Value

An object of class "phylo4".

Arguments

n

an integer giving the number of tips in the tree

...

further arguments to be passed to rtree

Author

Michael Boyd mboyd855@gmail.com

Michelle Kendall michelle.louise.kendall@gmail.com

Examples

Run this code
## Create a random phylo4 tree with 10 tips:
tree4 <- rtree4(10)


Run the code above in your browser using DataLab