This helper returns a named list describing how to draw the
connecting segment between two x positions. It intentionally uses the same
output shape as style_segment_alpha_gradient() so plotting code can treat
both styles uniformly.
Arguments
- alpha
Segment alpha (opacity) as a single numeric value between 0 and 1.
- n
Number of interpolation points when using
ggforce::geom_link().