Description Usage Arguments Details Author(s) References See Also Examples
This function adds a geological time scale on the side of a phylogeny plot.
1 2 3 |
GTS |
a data frame containing the geological time scale such as provided by |
tip.time |
a real number giving time units back from present were the youngest taxa were sampled. |
unit |
a vector of mode character used to select geological time units that shall be displayed. When using |
ages |
logical: if |
cex |
a real number giving the character expansion. |
col |
a vector of mode character used to select background color(s). Will be recycled if necessary. |
texcol |
a vector of mode character used to select font color(s). Will be recycled if necessary. |
gridty |
an integer representing the line type of the grid exactly in the same way as |
gridcol |
a vector of mode character used to select grid color(s). Will be recycled if necessary. |
This function is intended to make the geological time scale from the paleoPhylo
package available to users of the ape
package (paleoPhylo is not yet on CRAN). For more functions for analysing and plotting paleontological data, see the paleoPhylo
package on R-Forge.
If the name of a time interval does not fit the space on the plotting device provided by that time frame, axisGeo
tries to fit the name string by lowering the original character expansion. In order to avoid undiscernable small font sizes only character expansion of 50 percent or more of the original cex
is allowed; in all other cases strings are abreviated and plotted with the original character expansion.
Christoph Heibl
Gradstein F.M., J.G. Ogg & A.G. Smith. 2004. A Geologic Time Scale. Cambridge University Press, Cambridge, UK. www.cambridge.org/uk/catalogue/catalogue.asp?isbn=0521786738.
International Commission on Stratigraphy. 2012. International stratigraphic chart: http://www.stratigraphy.org/upload/ISChart2009.pdf.
strat2012
for the current stratigraphic chart; gradstein04
(the 2004 stratigraphic chart from the paleoPhylo package) is still provided for backward comparison. axisPhylo
, axisChrono
, add.geoscale
are further possibilities add axes to plotted phylogenies.
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 31 32 33 34 35 36 37 38 39 40 41 | # phylogenetic relationships of bird orders:
# -----------------------------------------
data(bird.orders)
tr <- bird.orders
# Stratigraphic chart 2012
# ------------------------
data(strat2012)
# Classic:
# --------
plot.phylo(tr, edge.width = 2, label.offset = 0.5)
axisGeo(GTS = strat2012, unit = c("stage", "epoch", "period",
"era"), cex = 0.8)
# You can impose a grid ...
# -------------------------
plot.phylo(tr, edge.width = 2, label.offset = 0.5)
axisGeo(GTS = strat2012, unit = "stage", col = c("grey80",
"white"), gridty = 3)
# ... or use colors:
# ------------------
plot.phylo(tr, edge.width = 2, label.offset = 0.5)
axisGeo(GTS = strat2012, unit = "epoch", col = c("lightcyan",
"lightpink"), texcol = "navy", gridty = 4, gridcol = "red")
# A tree with non-contemporaneous tips:
# -------------------------------------
# youngest tip:
yt <- 23.8
plot.phylo(tr, edge.width = 2, label.offset = 0.5)
axisGeo(strat2012, tip.time = yt, unit = c("stage", "epoch"))
# The same tree with tips pointing upward:
# ---------------------------------------------
par(mar = c(2,5,2,2)) # adjust left-hand margin
plot.phylo(tr, edge.width = 2, direction = "upward")
axisGeo(strat2012, tip.time = yt, unit = c("stage", "epoch"),
gridty = 3, gridcol = "red")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.