plot_mother_lineages: Plot phylogeny and show mother lineages

Description Usage Arguments Value

View source: R/simMK_budding.R

Description

Function plots the phylogenetic tree from a buddPhy simulation and highlights the mother lineages. Mother lineages are those that survived through one of more events of speciation via budding. At the moment the function use colors randomly and, unfortunately, the color scheme cannot be chosen. Please re-run the plot to change color configuration.

Usage

1
2
3
4
5
6
plot_mother_lineages(
  sim_obj,
  background_color = "gray",
  edge_width = 3,
  no_margin = TRUE
)

Arguments

sim_obj

the output of a buddPhy simulation function.

background_color

the color of the non-mother lineages.

edge_width

the width of the phylogeny branches.

no_margin

if to add margin. See 'ape::plot.phylo'.

Value

Plots a phylogenetic tree.


Caetanods/buddPhy documentation built on Oct. 12, 2021, 12:14 p.m.