arclabels: Add arc labels to tips of a phylogeny; works for...

View source: R/arclabels.R

arclabelsR Documentation

Add arc labels to tips of a phylogeny; works for non-monophyletic groups and single tip lineages.

Description

Add arc labels to tips of a phylogeny; works for non-monophyletic groups and single tip lineages.

Usage

arclabels(phy, tips, ...)

## Default S3 method:
arclabels(
  phy = NULL,
  tips,
  text,
  plot_singletons = TRUE,
  ln.offset = 1.02,
  lab.offset = 1.06,
  cex = 1,
  orientation = "horizontal",
  ...
)

Arguments

phy

An object of class phylo.

tips

A character vector (or a list ?) with the names of the tips that belong to the clade or group. If multiple groups are going to be plotted, tips must be given in the form of a list.

...

optional arguments for arc.cladelabels.

text

A character vector indicating the desired text to label the arcs.

plot_singletons

Boolean. If TRUE (default), it will add arcs (and labels) to single tip lineages too. If FALSE, no arc or labels will be plotted over that tip..

ln.offset

line offset (as a function of total tree height) for arc.cladelabels.

lab.offset

label offset for arc.cladelabels.

cex

character expansion factor.

orientation

orientation of the text. Can be orientation = "vertical" (the default) or "horizontal".

Value

NULL


phylotastic/rphylotastic documentation built on Aug. 22, 2023, 9:51 p.m.