-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Strip .data from default labels #3746
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't strip_dots() get the plotenv passed into it with this new setup?
I don't think the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you feel certain about this then fine... but leave a comment about it because we usually use plotenv instead of globalenv
If you're concerned about it, I can just leave it without a default β if it fails (which based on my understanding of the code, shouldn't happen), it'll be caught by the |
I have no problem with it, but it is just slightly unclear that evaluation happens in the correct environment without a comment. So for future generations of me, I'd like a small comment |
If you remove the default, the argument is basically unused all the way through the recursion. Why have the argument at all then? I feel I'm missing something about this code... |
Ah... now I see. Disregard my last comment |
@thomasp85 this ensures that when you use the
.data
pronoun with ggplot2, it doesn't adversely affect the labels.@paleolimbot β this should make your talk slightly simpler π