Build node table for continuous phylogeography

build_nodes(
  treedata,
  lon = "location1",
  lat = "location2",
  height = "height_median",
  digits = 2,
  most_recent_sample = NULL,
  debug = getOption("ggphylogeo.debug", FALSE)
)

Arguments

treedata

treedata object with phylogeographic annotations

lon

name of longitude column prefix (default: "location1")

lat

name of latitude column prefix (default: "location2")

height

column name used for node ages (default: "height_median")

digits

numeric digits for rounding coordinates (default: 2)

most_recent_sample

Date or numeric year (e.g. 2019) used to calibrate ages to actual dates. If NULL (default) no calibration is performed.

debug

logical debug messages

Value

A data.frame with columns: node, lon, lat, age, istip, label