rescaleRR | R Documentation |
The function rescales all branches and leaves of the phylogenetic tree.
rescaleRR(tree,RR=NULL,height=NULL,trend=NULL,delta=NULL,kappa=NULL,lambda=NULL)
tree |
the phylogenetic tree to be rescaled. |
RR |
is the output of |
height |
is the desired height of the tree. If this parameter is
indicated, the tree branches are rescaled to match the total |
trend |
is a diffusion model with linear trend in rates through time.
The |
delta |
if this parameter is indicated, the tree is rescaled according
to Pagel's delta transform (Pagel 1999). Nodes are pushed toward the
present for values of |
kappa |
if this parameter is indicated, the tree is rescaled according
to Pagel's kappa transform (Pagel 1999). At |
lambda |
if this parameter is indicated, the tree is rescaled according
to Pagel's lambda transform (Pagel 1999). At |
Rescaled phylogenetic tree.
Silvia Castiglione, Pasquale Raia
Castiglione, S., Serio, C., Piccolo, M., Mondanaro, A., Melchionna, M., Di Febbraro, M., Sansalone, G., Wroe, S., & Raia, P. (2020). The influence of domestication, insularity and sociality on the tempo and mode of brain size evolution in mammals. Biological Journal of the Linnean Society,132: 221-231. doi:10.1093/biolinnean/blaa186
Pagel, M. (1999). Inferring the historical patterns of biological evolution. Nature, 401:877-884.
## Not run:
ape::rtree(100)->tree
phytools::fastBM(tree)->y
max(diag(vcv(tree)))->H
RRphylo(tree,y,clus=0)->RR
rescaleRR(tree,RR=RR)->treeRR
rescaleRR(tree,height=H/3)->tree_height
rescaleRR(tree,trend=5)->tree_trend
rescaleRR(tree,delta=0.5)->tree_delta05
rescaleRR(tree,delta=2)->tree_delta2
rescaleRR(tree,kappa=0.5)->tree_kappa
rescaleRR(tree,lambda=0.5)->tree_lambda
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.