Skip to content

Don't switch relationship of ymin/ymax during stacking - #3673

Merged
thomasp85 merged 3 commits into
tidyverse:masterfrom
thomasp85:stack-keep-order
Dec 17, 2019
Merged

thomasp85 merged 3 commits into
tidyverse:masterfrom
thomasp85:stack-keep-order

Conversation

@thomasp85

Copy link
Copy Markdown
Member

This PR addresses the problem uncovered in #3529 where position_stack changes the relation of ymin/ymax during stacking, making it difficult to recover the correct line to draw. It is less drastic than what #3607 proposes, and simply ensure minimal changes to the incoming data

@thomasp85 thomasp85 added this to the ggplot2 3.3.0 milestone Dec 16, 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.

Thanks! Looks good to me.

Could you add some short comment that we need max_is_lower to preserve the relationship, so that we won't easily hit the same bug again?

Comment thread R/position-stack.r Resolved
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.

2 participants