Skip to contents
0.16.6 documentation

Complete canonical API text; task articles explain the workflows. Tutorials

Site guide · find your task

A layer form of bundle_ggchord_ribbons() that computes bundles before the shared chord geometry and exposes after_stat(bundle_n), after_stat(bundle_weight), and after_stat(density).

Usage

Code
stat_ribbon_bundle(
  mapping = NULL,
  data = NULL,
  bins = 80L,
  min_bundle = 2L,
  weight = c("length", "count", "pident"),
  group_by = NULL,
  position = "identity",
  show.legend = TRUE,
  inherit.aes = FALSE,
  ...
)

Arguments

mapping, data

Standard layer mapping and data arguments.

bins, min_bundle, weight, group_by

Passed to bundle_ggchord_ribbons().

position, show.legend, inherit.aes

Standard ggplot2 layer arguments.

...

Ribbon geometry and appearance arguments passed to geom_link_ribbon().

Value

A ggchord ribbon layer.