Learn R Programming

RRphylo (version 3.0.0)

makeFossil: Make fossil species on a phylogeny

Description

This function takes an object of class 'phylo' and randomly changes the lengths of the leaves.

Usage

makeFossil(tree,p=0.5,ex=0.5)

Value

The function produces a phylogeny having the same backbone of the original one.

Arguments

tree

a phylogenetic tree. The tree needs not to be ultrametric and fully dichotomous.

p

the proportion of tips involved. By default it is half of the number of tips.

ex

the multiplying parameter to change the leaf lengths. It is set at 0.5 by default.

Author

Pasquale Raia, Silvia Castiglione, Carmela Serio, Alessandro Mondanaro, Marina Melchionna, Mirko Di Febbraro, Antonio Profico, Francesco Carotenuto

Examples

Run this code
data("DataApes")
DataApes$Tstage->Tstage

makeFossil(tree=Tstage)->mf

Run the code above in your browser using DataLab