compare_lineages: Compare lineages of two taxa side by side

View source: R/utils.R

compare_lineagesR Documentation

Compare lineages of two taxa side by side

Description

Prints the lineages of two taxa aligned at their most recent common ancestor, making the point of divergence easy to identify.

Usage

compare_lineages(taxon_a, taxon_b, verbose = FALSE)

Arguments

taxon_a

A character string giving the first taxon name.

taxon_b

A character string giving the second taxon name.

verbose

Logical. If TRUE, prints progress messages. Default FALSE.

Value

Invisibly returns a list with elements lineage_a, lineage_b, and mrca_depth.

Examples


compare_lineages("Tyrannosaurus", "Velociraptor")
compare_lineages("Tyrannosaurus", "Triceratops")


taxodist documentation built on May 6, 2026, 1:06 a.m.