Skip to content

Aes arrow support#69

Merged
rsh52 merged 5 commits into
mainfrom
aes-arrow-support
Apr 17, 2026
Merged

Aes arrow support#69
rsh52 merged 5 commits into
mainfrom
aes-arrow-support

Conversation

@rsh52
Copy link
Copy Markdown
Contributor

@rsh52 rsh52 commented Apr 17, 2026

Allows users to call x + xend to define arrow neck length instead of relying on a static parameter via arrow_neck_length.

rsh52 added 5 commits April 17, 2026 14:24
Allow geom_swim_arrow() to accept mapped x positions instead of always deriving the arrow neck from xend. setup_data() now detects when x is mapped and preserves provided x/xend; when x is not mapped it preserves previous behavior by setting x = xend and extending xend by arrow_neck_length (with the same default heuristic). Added x = NA to default_aes, refactored draw_panel() for clarity while preserving scale-driven and parameter-driven arrow styling, and improved roxygen docs and examples to explain both mapping modes and arrow_neck_length behavior. Minor formatting and comment cleanups only.
Add a unit test and documentation note for using mapped aesthetics with geom_swim_arrow. The new test verifies that x/xend and arrow can be provided via aes() and used with scale_arrow_discrete(), and the vignette was updated to document that x and xend may be mapped for dynamic arrow neck lengths. Tests' PDF output was updated as a binary change.
@rsh52 rsh52 self-assigned this Apr 17, 2026
@rsh52 rsh52 added the enhancement New feature or request label Apr 17, 2026
@rsh52 rsh52 merged commit 18e8bc6 into main Apr 17, 2026
11 checks passed
@rsh52 rsh52 deleted the aes-arrow-support branch April 17, 2026 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant