Plot locations of ancestors of given individual or node on a map

plot_ancestors(
  data,
  x = NULL,
  full_scale = TRUE,
  younger_than = NULL,
  color = c("time", "level")
)

Arguments

data

pyslim.SlimTreeSequence object

x

Either a string representing an individual name, or an integer number specifying a node in a tree sequence. If NULL (default), the spatial ancestry of all focal nodes will be plotted.

full_scale

Plot time gradient on the full scale (spanning the oldest sampled individual to the present)

younger_than

Time boundaries for the samples

color

How to color connecting lines? Allowed values are either "time" (continuous variable specifying the age of the parental node) or "level" (factor variable indicating the number of coalescent events separating the 'focal node' and the given ancestral node).