sim.tree: Simulation of phylogenetic or functional tree.

View source: R/BAT.R

sim.treeR 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))

BAT documentation built on May 29, 2024, 7:35 a.m.

Related to sim.tree in BAT...