Skip to content

Refer to ggplot_global for x and y aesthetics variables - #4129

Merged
yutannihilation merged 1 commit into
tidyverse:masterfrom
yutannihilation:refactor/use-ggplot_global
Jul 13, 2020
Merged

yutannihilation merged 1 commit into
tidyverse:masterfrom
yutannihilation:refactor/use-ggplot_global

Conversation

@yutannihilation

Copy link
Copy Markdown
Member

I happened to find scale_{x,y}_binned() doesn't include x0 and y0, which I think is unintended. Probably we should refer to ggplot_global directly in these cases. Hard coding the same list on 4 places is a bit hard to maintain.

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

LGTM. Makes me wonder though whether these lists should be made available to extension packages in some form. ggplot_global is an internal variable, I believe.

@yutannihilation

Copy link
Copy Markdown
Member Author

Sure. I'll file a new issue for ggplot_global and let's discuss there.

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