lttPlot | R Documentation |
lttPlot
plots the lineage through time (LTT) of a phylo
object.
It also adds a reference line connecting the edges of the graph.
lttPlot(
phy,
lwd = 1,
col = "red",
plot = TRUE,
rel.time = FALSE,
add = FALSE,
knitr = FALSE
)
phy |
A |
lwd |
Line width. |
col |
Line color. |
plot |
A |
rel.time |
A |
add |
A |
knitr |
Logical indicating if plot is intended to show up in RMarkdown files made by the |
Plots the sum of alive lineages per point in time, and adds a red
line as a reference of expectation under pure birth. If plot = FALSE
,
a list the richness of each point in time, and phy
's crown age.
Daniel Rabosky, Matheus Januario, Jennifer Auler
Paradis, E. (2012). Analysis of Phylogenetics and Evolution with R (Vol. 2). New York: Springer.
S <- 1
E <- 0
set.seed(1)
phy <- simulateTree(pars = c(S, E), max.taxa = 20, max.t = 5)
lttPlot(phy, knitr = TRUE)
lttPlot(phy, plot = FALSE, knitr = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.