Description Usage Arguments Value Author(s) See Also Examples
This function ...
1 | add.timeframe(phy, age, clade = NULL, tips = NULL, ...)
|
phy |
An object of class |
age |
A vector of mode |
clade |
An integer giving the the node number of the MRCA of a clade to which the timeframe should be restricted. |
tips |
A vector of integers giving the numbers of tips to which the time frame should be restricted. Can be used for non-monophyletic groups. |
... |
Further arguments. |
none
Christoph Heibl
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 |
# phylogentic relationships of bird orders:
# -----------------------------------------
data(bird.orders)
# plot tree:
# setting edge and tip colors to zero (invisible) improves
# resolution
# ----------
plot(bird.orders, edge.color = 0, tip.color = 0)
# highlight some geological event, etc. ...
# -----------------------------------------
add.timeframe(bird.orders, age = c(12, 14), col = "skyblue",
border = NA)
# restrict to certain clade ...
# -----------------------------
cl <- noi(bird.orders, c("Struthioniformes", "Anseriformes"))
add.timeframe(bird.orders, age = c(16:21), col = "pink",
border = NA, clade = cl)
# or to some other non-monophyletic assemby:
# ------------------------------------------
add.timeframe(bird.orders, age = c(17:24), col = "yellow",
border = NA, tips = 6:8)
# now plot tree again:
# arguments must be exactly the same of course, except for
# edge and tip colors
# -------------------
plot.phylo.upon(bird.orders)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.