Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

geom_strip

geom_strip


Description

annotate associated taxa (from taxa1 to taxa2, can be Monophyletic, Polyphyletic or Paraphyletc Taxa) with bar and (optional) text label

Usage

geom_strip(
  taxa1,
  taxa2,
  label,
  offset = 0,
  offset.text = 0,
  align = TRUE,
  barsize = 0.5,
  extend = 0,
  fontsize = 3.88,
  angle = 0,
  geom = "text",
  hjust = 0,
  color = "black",
  fill = NA,
  family = "sans",
  parse = FALSE,
  ...
)

Arguments

taxa1

taxa1

taxa2

taxa2

label

optional label

offset

offset of bar and text from the clade

offset.text

offset of text from bar

align

logical

barsize

size of bar

extend

extend bar vertically

fontsize

size of text

angle

angle of text

geom

one of 'text' or 'label'

hjust

hjust

color

color for bar and label

fill

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

family

sans by default, can be any supported font

parse

logical, whether parse label

...

additional parameter

Value

ggplot layers

Author(s)

Guangchuang Yu


ggtree

an R package for visualization of tree and annotation data

v2.4.2
Artistic-2.0
Authors
Guangchuang Yu [aut, cre, cph] (<https://orcid.org/0000-0002-6485-8781>), Tommy Tsan-Yuk Lam [aut, ths], Shuangbin Xu [aut] (<https://orcid.org/0000-0003-3513-5362>), Yonghe Xia [ctb], Justin Silverman [ctb], Bradley Jones [ctb], Watal M. Iwasaki [ctb], Ruizhu Huang [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.