geom_cladelabel: geom_cladelabel

Description Usage Arguments Value Author(s) See Also

View source: R/geom_cladelabel.R

Description

annotate a clade with bar and text label

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
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, default is TRUE.

...

additional parameter

Value

ggplot layers

Author(s)

Guangchuang Yu

See Also

geom_cladelabel2


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