Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move seed setup in position_jitter() to setup_params() from the constructor #4413

Merged
merged 1 commit into from
Apr 13, 2021

Conversation

thomasp85
Copy link
Member

Fix #2507

This PR implements @paleolimbot suggested fix. I think it is brittle to rely on calling the constructor, because it is also valid (but weird) to pass in PositionJitter directly

I think we should aim for all ggproto objects to be self-sufficient, i.e. have next to no logic in the constructors

@thomasp85 thomasp85 added this to the ggplot2 3.3.4 milestone Apr 12, 2021
@thomasp85 thomasp85 requested a review from clauswilke April 12, 2021 11:24
Copy link
Member

@clauswilke clauswilke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@paleolimbot
Copy link
Member

I'm glad some of those comments are useful! I'm looking forward to a job/life combination where I can build in time for ggplot2 again 😊

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.

position = "jitter" and position = position_jitter() have different behavior
3 participants