geom_taxalink: link between taxa

Description Usage Arguments Value Aesthetics

View source: R/geom_taxalink.R

Description

geom_taxalink supports data.frame as input, the colour, size, linetype and alpha can be mapped. When the data was provided, the mapping should be also provided, which taxa1 and taxa2 should be mapped created by aes, aes_ or aes_string. In addition, the hratio, control the height of curve line, when tree layout is cirular, default is 1. ncp, the number of control points used to draw the curve, more control points creates a smoother curve, default is 1. They also can be mapped to a column of data.

Usage

1
2
3
4
5
6
7
8
9
geom_taxalink(
  data = NULL,
  mapping = NULL,
  taxa1 = NULL,
  taxa2 = NULL,
  offset = NULL,
  outward = "auto",
  ...
)

Arguments

data

data.frame, The data to be displayed in this layer, default is NULL.

mapping

Set of aesthetic mappings, default is NULL.

taxa1

can be label or node number.

taxa2

can be label or node number.

offset

numeric, control the shift of curve line (the ratio of axis value, range is "(0-1)"), default is NULL.

outward

logical, control the orientation of curve when the layout of tree is circular, fan or other layout in polar coordinate, default is "auto", meaning It will automatically.

...,

additional parameter.

Value

a list object.

Aesthetics

geom_taxalink() understands the following aesthethics (required aesthetics are in bold):


ggtree documentation built on Nov. 15, 2020, 2:09 a.m.