Skip to content

Restore data order after collide - #3680

Merged
thomasp85 merged 1 commit into
tidyverse:masterfrom
thomasp85:issue3498-collide-no-reorder
Dec 20, 2019
Merged

thomasp85 merged 1 commit into
tidyverse:masterfrom
thomasp85:issue3498-collide-no-reorder

Conversation

@thomasp85

Copy link
Copy Markdown
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

@yutannihilation yutannihilation left a comment

Copy link
Copy Markdown
Member

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