Skip to content

Use independent jitter offsets across facets - #6936

Open
M-Colley wants to merge 1 commit into
tidyverse:mainfrom
M-Colley:fix/independent-facet-jitter-6858
Open

M-Colley wants to merge 1 commit into
tidyverse:mainfrom
M-Colley:fix/independent-facet-jitter-6858

Conversation

@M-Colley

Copy link
Copy Markdown

Summary

Seed jitter once per layer so facets draw different offsets. The panel-level calculation still uses each panel’s resolution, and layers with the same data and seed still align.

Validation

  • The focused regression failed on the original code because the second panel repeated the first panel’s offsets. All four focused assertions passed with the patch.
  • Verified the caller’s RNG state for explicit seeds, seed = NA, and seed = NULL.
  • R CMD check --no-manual --ignore-vignettes passed the examples and 1,890 assertions. The check reported the existing note for shared_layer_parameters.Rd, which is byte-identical to the base.

Fixes #6858.

I used Codex to prepare and validate the patch.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

geom_jitter can produce the same jitter across facets

1 participant