Learn R Programming

ggtree (version 1.4.11)

rtree: generate random tree

Description

generate random tree

Usage

rtree(n, rooted = TRUE, tip.label = NULL, br = runif, ...)

Arguments

n
number of tips in the tree
rooted
logcial
tip.label
tip label
br
one of the following: (i) an R function used to generate the branch lengths ('rtree'; use 'NULL' to simulate only a topology), or the coalescence times ('rcoal'); (ii) a character to simulate a genuine coalescent tree for 'rcoal' (the default); or (iii) a numeric vector for the branch lengths or the coalescence times.
...
additional parameters to be passed to 'br'

Source

This is just the imported function from the ape package. The documentation you should read for the rtree function can be found here: rtree

See Also

rtree