sim.tree {BAT} | R Documentation |
Simulation of phylogenetic or functional tree.
Description
Simulates a random tree.
Usage
sim.tree(s, m = 100)
Arguments
s |
number of species. |
m |
a structural parameter defining the average difference between species. Default is 100. Lower numbers create trees dominated by increasingly similar species, higher numbers by increasingly dissimilar species. |
Details
A very simple tree based on random genes/traits.
Value
An hclust object.
Examples
tree <- sim.tree(10)
plot(as.dendrogram(tree))
tree <- sim.tree(100,10)
plot(as.dendrogram(tree))
tree <- sim.tree(100,1000)
plot(as.dendrogram(tree))
[Package BAT version 2.9.6 Index]