nltts_plot: Get the average nLTT from a collection of phylogenies

View source: R/nltts_plot.R

nltts_plotR Documentation

Get the average nLTT from a collection of phylogenies

Description

Get the average nLTT from a collection of phylogenies

Usage

nltts_plot(
  phylogenies,
  dt = 0.001,
  plot_nltts = FALSE,
  xlab = "Normalized Time",
  ylab = "Normalized Lineages",
  replot = FALSE,
  ...
)

Arguments

phylogenies

a collection of one or more phylogenies, where the phylogenies are of type phylo. This collection can both be a list of phylo or a multiphylo.

dt

The timestep resolution, a value bigger than zero and less or equal to one. 1/dt is the number of points that will be evaluated

plot_nltts

Also plot each nLLT line

xlab

Label on the x axis

ylab

Label on the y axis

replot

If false, start a clean plot. If true, plot the new data over the current

...

Plotting options

Value

Nothing

Author(s)

Richèl J.C. Bilderbeek

Examples

  nltts_plot(c(ape::rcoal(10), ape::rcoal(10)))
  nltts_plot(c(ape::rcoal(10), ape::rcoal(20)), dt = 0.1)

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