geom_cladelabel: geom_cladelabel

View source: R/geom_cladelabel.R

geom_cladelabelR Documentation

geom_cladelabel

Description

annotate a clade with bar and text label

Usage

geom_cladelabel(
  node,
  label,
  offset = 0,
  offset.text = 0,
  extend = 0,
  align = FALSE,
  barsize = 0.5,
  fontsize = 3.88,
  angle = 0,
  geom = "text",
  hjust = 0,
  color = NULL,
  fill = NA,
  family = "sans",
  parse = FALSE,
  horizontal = TRUE,
  ...
)

Arguments

node

selected node

label

clade label

offset

offset of bar and text from the clade

offset.text

offset of text from bar

extend

extend bar height

align

logical

barsize

size of bar

fontsize

size of text

angle

angle of text

geom

one of 'text' or 'label'

hjust

justify text horizontally

color

color for clade & label, of length 1 or 2

fill

fill label background, only work with geom='label'

family

sans by default, can be any supported font

parse

logical, whether parse label

horizontal

logical, whether set label to horizontal, defaults to TRUE.

...

additional parameter

Value

ggplot layers

Author(s)

Guangchuang Yu

See Also

geom_cladelabel2


YuLab-SMU/ggtree documentation built on Nov. 3, 2024, 4:15 p.m.