geom_segment2 {ggtree} | R Documentation

## geom_segment2

### Description

geom_segment2 support aes(subset) via setup_data

### Usage

    geom_segment2(mapping = NULL, data = NULL, stat = "identity",
      position = "identity", arrow = NULL, arrow.fill = NULL,
      lineend = "butt", na.rm = FALSE, show.legend = NA,
      inherit.aes = TRUE, nudge_x = 0, ...)

### Arguments

`mapping` | aes mapping
`data` | data
`stat` | Name of stat to modify data
`position` | position
`arrow` | specification for arrow heads, as created by arrow().
`arrow.fill` | fill color to usse for the arrow head (if closed). 'NULL' means use 'colour' aesthetic.
`lineend` | lineend
`na.rm` | logical
`show.legend` | logical
`inherit.aes` | logical
`nudge_x` | horizontal adjustment of x
`...` | additional parameter

### Value

add segment layer

### Author(s)

Guangchuang Yu

### See Also

geom_segment

[Package ggtree version 1.12.7 Index]