makeFossil: Make fossil species on a phylogeny

View source: R/makeFossil.R

makeFossilR Documentation

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)

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.

Value

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

Author(s)

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

Examples

data("DataApes")
DataApes$Tstage->Tstage

makeFossil(tree=Tstage)

RRphylo documentation built on May 9, 2022, 9:08 a.m.