Skip to contents

Plot reticulation networks

Usage

ggret(
  data,
  mapping = NULL,
  retcol = "black",
  arrows = FALSE,
  retlinetype = 2,
  rettype = "snake",
  na.rm = TRUE,
  mrsd = NULL,
  as.Date = FALSE,
  yscale = "none",
  yscale_mapping = NULL,
  ladderize = TRUE,
  right = FALSE,
  branch.length = "branch.length",
  root.position = 0,
  xlim = NULL,
  layout.params = list(as.graph = TRUE),
  hang = 0.1,
  ...
)

Arguments

data

either treedata or evonet objects

mapping

aesthetic mappings

retcol

reticulation edge colour

arrows

if TRUE reticulation edges end with arrows

retlinetype

line type aesthetic for reticulations

rettype

Either 'straight' or 'snake'. Determines in which style reticulations are drawn

na.rm

supresses NA value warnings

mrsd

Most recent sampling date

as.Date

logical whether using Date class for time

yscale

Y-Scale

yscale_mapping

Y-scale mapping for category variable,

ladderize

Logical (default TRUE). Should the tree be re-organized to have a 'ladder' format?

right

Logical. If ladderize = TRUE, should the ladder have the smallest clade on the right-hand side? See ape::ladderize() for more information.

branch.length

Variable for scaling branch.

root.position

Position of the root node (default = 0)

xlim

X-Axis limits.

layout.params

Layout parameters in list format

hang

Defines the hang

...

additional parameter

Value

reticulation network plot