nltt_diff: Calculates the exact difference between the lineage through...

View source: R/nLTTDiff.R

nltt_diffR Documentation

Calculates the exact difference between the lineage through time curves of tree1 & tree2 (normalized in time and for the number of lineages)

Description

Calculates the exact difference between the lineage through time curves of tree1 & tree2 (normalized in time and for the number of lineages)

Usage

nltt_diff(
  tree1,
  tree2,
  distance_method = "abs",
  ignore_stem = TRUE,
  log_transform = FALSE
)

Arguments

tree1

(phylo) First phylogenetic tree

tree2

(phylo) Second phylogenetic tree

distance_method

(string) absolute, or squared distance?

ignore_stem

logical Should the phylogeny its stem be ignored?

log_transform

(logical) Should the number of lineages be log-transformed before normalization?

Value

(scalar) normalized Lineage-Through-Time difference between tree1 & tree2

Author(s)

Thijs Janzen

See Also

use nltts_diff to compare a collection of phylogenies to one focal/reference tree


richelbilderbeek/nLTT documentation built on Aug. 23, 2023, 8 a.m.