Converts temporal and ancestor-descendant relationships of taxa into a time-scaled phylogeny
A five-column matrix of taxonomic data, as output by
A vector of per-taxon times of observation which must be in the same order of taxa as in the object taxad; if NULL, the LADs (column 4) in taxad2 are used
Plot the resulting phylogeny?
As described in the documentation for taxa2cladogram, the relationships among morphotaxa in the fossil record are difficult to describe in terms of traditional phylogenies. One possibility is to arbitrarily choose particular instantaneous points of time in the range of some taxa and describe the time-scaled relationships of the populations present at those dates. This is the tactic used by taxa2phylo.
By default, the dates selected ('obs-time' argument) are the last occurences of the taxon, so a simple use of this function will produce a time-scaled tree which describes the relationships of the populations present at the last occurence of each taxon in the sampled data. Alternatively, obs_time can be supplied with different dates within the taxon ranges.
All data relating to when static morpho-taxa appear or disappear in the record is lost; branching points will be the actual time of speciation, which (under budding) will often be in the middle of the temporal range of a taxon.
Cryptic taxa are not dropped or merged as can be done with taxa2cladogram. The purpose of taxa2phylo is to obtain the 'true' pattern of evolution for the observation times, independent of what we might actually be able to recover, for the purpose of comparing in simulation analyses.
As with many functions in the paleotree library, absolute time is always decreasing, i.e. the present day is zero.
The resulting phylogeny with branch lengths is output as an object of class phylo. This function will output trees with the element $root.time, which is the time of the root divergence in absolute time.
The tip labels are the rownames from the simulation input; see documentation
fossilRecord2fossilTaxa documentation for details.
DO NOT use this function to time-scale a real tree for a real dataset. It assumes you know the divergence/speciation times of the branching nodes and relationships perfectly, which is almost impossible given the undersampled nature of the fossil record. Use timePaleoPhy or cal3TimePaleoPhy instead.
DO use this function when doing simulations and you want to make a tree of the 'true' history, such as for simulating trait evolution along phylogenetic branches.
taxa2cladogram, this function does not merge cryptic taxa in output
and I do not offer an option to secondarily drop them.
The tip labels should provide the necessary information for users to drop
such taxa, however. See simFossilRecord.
David W. Bapst
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
set.seed(444) record<-simFossilRecord(p=0.1, q=0.1, nruns=1, nTotalTaxa=c(30,40), nExtant=0) taxa<-fossilRecord2fossilTaxa(record) #let's use taxa2cladogram to get the 'ideal' cladogram of the taxa tree<-taxa2phylo(taxa) phyloDiv(tree) #now a phylogeny with tips placed at the apparent time of extinction for each taxon rangesCont<-sampleRanges(taxa,r=0.5) tree<-taxa2phylo(taxa,obs_time=rangesCont[,2]) phyloDiv(tree,drop.ZLB=FALSE) #note that it drops taxa which were never sampled! #testing with cryptic speciation set.seed(444) record<-simFossilRecord(p=0.1, q=0.1, prop.cryptic=0.5, nruns=1, nTotalTaxa=c(30,40), nExtant=0, count.cryptic=TRUE) taxaCrypt<-fossilRecord2fossilTaxa(record) treeCrypt<-taxa2phylo(taxaCrypt) layout(1) plot(treeCrypt) axisPhylo()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.