
Last chance! 50% off unlimited learning
Sale ends in
rtree(n, br = TRUE)
TRUE
).br = TRUE
, branch lengths are taken from a uniform
distribution on [0, 1]. This is an experimental function and is not intended to generate trees
with given statistical characteristics (at least for the moment). Its
present purpose is to give a tree of a specified size in an easy
way. To get an ultrametric tree, one may apply the function
chronogram
to the tree generated by rtree
.
layout(matrix(1:9, 3, 3))
### Nine random trees:
for (i in 1:9) plot(rtree(20))
### Nine random cladograms:
for (i in 1:9) plot(rtree(20, FALSE), type = "c")
layout(matrix(1))
Run the code above in your browser using DataLab