Skip to content

Do not flip eagerly when both axis are discrete like - #3763

Merged
yutannihilation merged 1 commit into
tidyverse:v3.3.0-rcfrom
yutannihilation:fix/issue-3761-do-not-flip-eagarly
Feb 3, 2020
Merged

yutannihilation merged 1 commit into
tidyverse:v3.3.0-rcfrom
yutannihilation:fix/issue-3761-do-not-flip-eagarly

Conversation

@yutannihilation

Copy link
Copy Markdown
Member

Fix #3761

Currently, we try to make a precise guess in has_flipped_aes(), but it seems the guess goes wrong in some cases when both axis are discrete like. I don't know what the proper fix would be, but I think it's rather safe to stay unflipped when we are not fully sure it's flippable, considering we want to avoid introducing some big change to the current RC branch.

@yutannihilation

Copy link
Copy Markdown
Member Author

@thomasp85 PTAL after rstudio::conf. Sorry for bothering you....

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

I think this is a good pragmatic solution. I did not anticipate the integer representation of dates when I wrote this

@yutannihilation

Copy link
Copy Markdown
Member Author

Thanks. Yeah, datetime scales tend to slip our mind... It cannot be perfect to guess how "descrete-ish" the scale is only from the internal representation, so I vaguely feel we might face more tricky cases where we want the scale information. But, let's consider it when we actually see some issue.

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