Skip to contents
0.16.6 documentation

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

Site guide · find your task

Assigns overlapping intervals on the same sequence and side to radial lanes. Explicit display priority is ordered first, then intervals by decreasing length. Every interval takes the nearest collision-free lane; feature type, name and colour never choose a lane. The resulting anchors are shared with gene label layers because stacking is solved before polygons and labels are generated. In coord_collinear(), these local lanes become parallel horizontal bands; they do not represent circular physical tracks or radii.

Usage

Code
position_feature_stack(
  spacing = 0.1,
  side = c("strand", "outside", "inside"),
  base_position = NULL
)

Arguments

spacing

Positive minimum radial distance between adjacent feature lanes. Circular plasmid layout enlarges the first transition into a main label corridor and reserves at least one label track between deeper overlapping feature lanes.

side

Legacy track-side selector retained for compatibility when base_position is NULL. Its historical names retain their existing geometry.

base_position

Optional identity, strand, or plasmid Position applied before interval-overlap detection and lane allocation.

Value

A ggplot2 Position object for geom_gene() or geom_feature().