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))
Results
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(BAT)
Loading required package: nls2
Loading required package: proto
Loading required package: raster
Loading required package: sp
Loading required package: spatstat
Loading required package: nlme
Attaching package: 'nlme'
The following object is masked from 'package:raster':
getData
Loading required package: rpart
spatstat 1.45-2 (nickname: 'Caretaker Mode')
For an introduction to spatstat, type 'beginner'
Attaching package: 'spatstat'
The following objects are masked from 'package:raster':
area, rotate, shift
Loading required package: vegan
Loading required package: permute
Loading required package: lattice
Attaching package: 'lattice'
The following object is masked from 'package:spatstat':
panel.histogram
This is vegan 2.4-0
Attaching package: 'BAT'
The following object is masked from 'package:base':
beta
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/BAT/sim.tree.Rd_%03d_medium.png", width=480, height=480)
> ### Name: sim.tree
> ### Title: Simulation of phylogenetic or functional tree.
> ### Aliases: sim.tree
>
> ### ** 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))
>
>
>
>
>
> dev.off()
null device
1
>