Description Usage Arguments Details Value Author(s) References See Also Examples
Takes any object of class paleoPhylo
and computes per-lineage origination and extinction rates within the set of bins specified by the user. Lineages persisting to the specified end are not considered to have gone extinct. Events taking place exactly on bin boundaries are taken to occur in the later bin.
1 |
pP |
An object of class 'paleoPhylo' (see |
bL |
The length of bin; defaults to 1. |
st |
Start date for binning; defaults to start of the |
en |
End date for binning; defaults to end of the |
Can be used to calculate time-series of rates for correlation analysis, etc. The function identifies lineages that do something at or after the start of the bin, but before the end of the bin, meaning that lineages surviving to the specified end time are not viewed as having gone extinct)
rates.within.bins does the same thing, with slightly different variable names. This function is intended to be a faster replacement, but both are currently (version 1.0-80) still in the package. The big change is in the usage order; in rates.within.bins() it is pP, begin, end, bin.length)
rwb is a data.frame, containing the following columns:
binStart |
The start date of the bin. |
nStart |
Number of extant lineages present at the start of the bin. |
branchLength |
The branch length of the phylogeny within the bin. |
orig |
The number of originations in the bin. |
extn |
The number of extinctions in the bin. |
lambda |
Speciation rate across the bin. |
mu |
Extinction rate across the bin. |
Thomas H.G. Ezard and Andy Purvis t.ezard@soton.ac.uk
Ezard, T.H.G. & Purvis, A. (2009). paleoPhylo: free software to draw paleobiological phylogenies. Paleobiology 35, 460-464. doi: 10.1666/0094-8373-35.3.460.
rates.within.bins
, as.paleoPhylo
, pearson93
1 2 3 4 5 6 7 8 9 | data(pearson93)
p93 <- with(pearson93, as.paleoPhylo(Code, Parent, Start, End, label=Name))
p93RWB <- rwb(p93, bL=5)
with(p93RWB, plot(-binStart, lambda, col=4, lwd=2, type='l',
xlab="Start of bin (ma)", ylab="Rate", axes=FALSE))
with(p93RWB, lines(-binStart, mu, col=2, lwd=2))
axis(1, at=seq(-65,-25,5), label=abs(seq(-65,-25,5)))
axis(2, at=seq(0,0.25,.05))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.