Description Usage Arguments Details Value Author(s) References See Also Examples
Generates a cladogram that can distinguish between budding and bifurcating speciations. Hypothetical relationships and stratigraphic uncertainty can be incorporated using stratUnc
. Further details on the distinction can be found in as.paleoPhylo
. Additional arguments enable clipping of time axes in variable formats and from different geological scales to the main plot.
1 2 3 4 5 |
pP |
An object of class 'paleoPhylo' (see |
uSR |
A list generated through |
addTimeLine |
Add a time axis to the plot. Four options (or only their first letter) are accepted: "none" (plots no time axis); "classic" (default, plots a set of rectangular boxes with labels on the left-hand side of the cladogram); "tube" (plots grey and white rectangles underneath the cladogram, as London tube maps plot travelcard zones); "arrow" (plots an arrow in the direction of the time axis) |
tmScl |
A time scale for the time axis. The "Gradstein 2004" (see |
whatTime |
A vector of column names to be plotted in the time axis on the plot. Defaults to 'epoch' and 'age', as used in |
l2r |
Should the time axis run from left to right or top to bottom? Defaults to FALSE, i.e. top to bottom. |
nmLim |
A number of million years that serves as the limit for when the name of the period/epoch/stage/etc... should be printed in the 'classic' time axis. Defaults to 2. |
cexText |
Change the text size of time labels. See |
srtText |
Change the text direction of time labels in the classic time axis. See |
cexTime |
Change the text size of time numbers. Defaults to the size of |
cexLab |
Change the text size of species lineage names. See |
lwdLin |
Change the line thickness. See |
hlty |
Change the horizontal line type if not otherwise specified using |
barLen |
The length of the horizontal bars if confidence intervals are being drawn using |
whSpc |
Controls the amount of white space around the phlyogram. Increasing values of |
dumpLast |
If |
sz |
Controls the proportion of the plot given over to a 'classic' time axis. |
In essence, all this does is generate a blank window and put some lines on top. As such, its use is not restricted to 'paleoPhylo' objects. It can be used in conjunction with fully bifurcating trees (ape2paleoPhylo
can convert an object of class 'phylo' to class 'paleoPhylo' using as.paleoPhylo
) to add time axes in multiple forms to plots, and in conjunction with the pdf graphics device (see pdf
) to output high-quality figures in pdf format (other graphics formats are available; see links from the pdf page).
Currently, any user read-in time scale MUST have a column called "MA", which contains age estimates for each period/epoch/stage/etc.... See gradstein04
or berggren95
for ways of *ensuring* your data frame will read in correctly.
addTimeLines=="classic"
uses split.screen
. The left-hand portion containing the axis has two fixed widths depending on the number of species lineages to be drawn. In due course, its width will become fully dynamic.
The function opens a graphics window and plots the lineage phylogeny (see as.paleoPhylo
for details). It does not return a list, since all the information is contained within input data.
Thomas H.G. Ezard 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.
as.paleoPhylo
, gradstein04
, pearson93
, berggren95
, stratUnc
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | data(pearson93)
data(berggren95)
op <- par(no.readonly=TRUE)
p93 <- with(pearson93, as.paleoPhylo(Code, Parent, Start, End, label=Name))
##example 1: without a time axis.
drawPhylo (p93)
##example 2: with a "classic" time axis.
drawPhylo (p93,
tmScl=berggren95, addTimeLine="classic", whatTime=c("epoch","zone"),
l2r=TRUE, cexText=c(1, 0.5), dumpLast=TRUE, nmLim=0.3)
##example 3: a fully bifucating version with different text sizes for time
p93cb <- createBifurcate(p93)
drawPhylo (p93cb,
tmScl=berggren95, addTimeLine="cl", whatTime=c("epoch","zone"),
dumpLast=TRUE, cexText=c(1, 0.5), nmLim=0.3, srtText=0)
#example 4: with species arranged on the x-axis according ...
## .... to some random trait data from a uniform distribution.
## .... THIS DELIBERATELY LOOKS A TOTAL MESS
##don't include latin names by leaving the "label" argument free.
p93rnd <- with(pearson93, as.paleoPhylo(Code, Parent, Start, End,
xx=runif(length(Code),-1,1)))
drawPhylo (p93rnd, tmScl=berggren95, addTimeLine="classic", whatTime=c("epoch"),
l2r=TRUE, cexTime=0.8, dumpLast=TRUE, cexText=1, nmLim=0.3)
##THERE ARE MORE EXAMPLES IN ape2paleoPhylo
par(op)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.