add_geo_timescale: Add geological timescale to a tree plot

View source: R/timescale.R

add_geo_timescaleR Documentation

Add geological timescale to a tree plot

Description

Add geological timescale to a tree plot

Usage

add_geo_timescale(
  p,
  tree,
  levels,
  layout,
  version = "ICS 2023/02",
  actual_ntips = NULL,
  timescale_mode = "radial",
  timescale_position = "right",
  angle = 360,
  tree_start_position = "right"
)

Arguments

p

ggplot object

tree

phylo object (edge lengths in Ma)

levels

Timescale levels vector, e.g., c("eras", "eons")

layout

Layout type

version

Geological timescale version. Default: "ICS 2023/02".

Value

ggplot object


Rclade documentation built on Sept. 26, 2026, 5:07 p.m.