Skip to contents

Tabulates the frequency of each deme at each leaf and coalescent node of a phylogenetic tree

Usage

coalescent_node_pie_charts(
  strphylo_list,
  plot_strphylo = NA,
  plot = TRUE,
  pie_cex = 0.5,
  ...
)

Arguments

strphylo_list

List of dated structured phylogenetic trees on the same dated phylogenetic tree

plot_strphylo

(optional) Dated phylogenetic tree on which to superimpose pie charts

plot

(logical) Plot pie charts on top of plot_strphylo?

...

Additional parameters to pass to plot.strphylo

Value

Returns list giving strphylo corresponding to plotted structured phylogeny (if plot=TRUE) or the first element of strphylo_list (if plot=FALSE), and matrix of deme frequencies at coalescent events in increasing age order from the MRCA.