Last chance! 50% off unlimited learning
Sale ends in
The function ltt
computes LTT plot with extant and extinct lineages, and optionally conducts ltt
can be plotted or re-plotted using plot
.
The function gtt
computes the value of Pybus & Harvey's
The function mccr
performs the MCCR test of Pybus & Harvey (2000) which takes into account incomplete taxon sampling in computing a P-value of the
ltt(tree, plot=TRUE, drop.extinct=FALSE, log.lineages=TRUE, gamma=TRUE, ...)
gtt(tree, n=100, ...)
mccr(obj, rho=1, nsim=100, ...)
is a phylogenetic tree in "phylo"
format, or an object of class "multiPhylo"
containing a list of phylogenetic trees.
a logical value indicating whether or not to create LTT plot.
logical value indicating whether or not to drop extinct tips from the tree.
logical value indicating whether LTT plot should be on log-linear (default) or linear-linear scale.
logical value indicating whether or not to compute
for gtt
the number of time intervals to use to track
for mccr
an object of class "ltt"
.
for mccr
sampling fraction.
for mccr
number of simulations to use for the MCCR test.
other arguments to be passed to plotting methods. See plot.default
.
ltt
returns an object of class "ltt"
which includes the following components:
a vector of branching times.
a vector of linages.
optionally, a value for the
two-tailed P-value for the
Although it is calculated here, it's unclear how to interpret the
Pybus, O. G., and P. H. Harvey (2000) Testing macro-evolutionary models using incomplete molecular phylogenies. Proc. R. Soc. Lond. B, 267, 2267-2272.
Revell, L. J. (2012) phytools: An R package for phylogenetic comparative biology (and other things). Methods Ecol. Evol., 3, 217-223.
# NOT RUN {
## LTT plots
set.seed(99)
trees<-pbtree(n=100,scale=100,nsim=10)
obj<-ltt(trees,plot=FALSE)
plot(obj,log="y",log.lineages=FALSE,
bty="l")
title(main="LTT plots for 10 pure-birth trees",
font.main=3)
tree<-pbtree(b=1,d=0.25,t=4)
obj<-ltt(tree,gamma=FALSE,show.tree=TRUE,
bty="l")
title(main="LTT plot with superimposed tree",
font.main=3)
obj
## GTT plot
data(anoletree)
anole.gtt<-gtt(anoletree,n=40)
plot(anole.gtt)
# }
Run the code above in your browser using DataLab