plot_treemix: Plot population tree

View source: R/treemix.R

plot_treemixR Documentation

Plot population tree

Description

Plot population tree

Usage

plot_treemix(
  obj,
  plot.nodes = TRUE,
  plot.migration = TRUE,
  branch.colour = "grey",
  branch.width = 0.5,
  label = TRUE,
  ...
)

Arguments

obj

pieces of a TreeMix run from read_treemix()

plot.nodes

show dots for internal and leaf nodes of population tree

plot.migration

show migration edges as curved arrows

branch.colour

colour to use when drawing edges of population tree

branch.width

weight of drift edges of population tree

Value

A ggplot2 plot, with dataframes fo tips and edges of tree returned as attributes attr(,"tips") and attr(,"edges") respectively


andrewparkermorgan/popcorn documentation built on July 8, 2023, 12:42 p.m.