Skip to content

Restore data order after collide #3680

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

Merged
merged 1 commit into from
Dec 20, 2019

Conversation

thomasp85
Copy link
Member

Fix #3498 This seems to be the last leftover from moving the area/ribbon reorder into setup_data like the rest of the geoms.

This change make sure that data returned from collide() is in the same order is it came in.

I think a general rule should be that positions should never change the order of data, only the content. There are situations where this is not possible, but as a general rule of thumb I think it is sane

@thomasp85 thomasp85 added this to the ggplot2 3.3.0 milestone Dec 19, 2019
Copy link
Member

@yutannihilation yutannihilation 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.

@yutannihilation

This comment has been minimized.

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_area not working with negative values and two categories in 3.2.1
2 participants