nltt_plot: Normalized version of the ape function ltt.plot

View source: R/plot_nLTT.R

nltt_plotR Documentation

Normalized version of the ape function ltt.plot

Description

This function uses a modified version of the ltt.plot function from "ape" to plot the normalized number of lineages through normalized time, where the number of lineages is normalized by dividing by the number of tips of the tree, and the time is normalized by the total time between the most common recent ancestor and the present, such that t(MRCA) = 0 & t(present) = 1.

Usage

nltt_plot(
  phy, xlab = "Normalized Time", ylab = "Normalized Lineages", ...)

Arguments

phy

an object of class "phylo"

xlab

a character string (or a variable of mode character) giving the label for the x-axis (default is "Normalized Time").

ylab

a character string (or a variable of mode character) giving the label for the y-axis (default is "Normalized Lineages").

...

further graphical arguments that can be passed to plot()

Author(s)

Thijs Janzen

Examples

  data(exampleTrees)
  nltt_plot(exampleTrees[[1]])

nLTT documentation built on Aug. 21, 2023, 5:13 p.m.