-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Remove rename_size = TRUE for sf and pointrange geoms #4964
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
Hmm, sorry, I think I'm still in confusion. Could you explain what's our strategy again? I still feel So, in my understanding this is a trade off between preserving the old code and making the new code less verbose, and I rather support the former. |
Yes - this is a breaking change for these two geoms... I believe it is worth it - size and linewidth has to be decoupled at some point and I'd rather make it now where the introduction of linewidth is in fresh memory instead of later on |
Hmm, let me review the past discussion. I think that's okay, but I don't remember if we agreed on that direction. Sorry for keeping you waiting. |
tagging in @hadley, just for completeness |
As this got approved, please feel free to merge if you are in hurry. |
@thomasp85
in the original PR. So, I think this part of the description of this PR is not quite correct. I bet that wasn't intentional, considering we agreed to postpone the braking change "after proper deprecation".
After all, I support your decision because the FAQ section of your blog post was convincing, and I agree that we should do it now before forgetting the plan. But, I'd appreciate if you respect the past discussions a bit more... Anyway, thanks for your hard work! |
I apologize that my comment above was wrong. I wrote
but, in reality, they never see warnings because |
That is on me. I had forgotten this past discussion and convinced myself that this was always the plan. Apologies for changing course |
No worries. Changing course itself is not a problem. I just wanted more details to make sure this is the right move because this topic has been too complex for me to understand quickly. |
Do you also intend to remove |
keep in mind geom_boxplot has fatten as well similar to crossbar Line 280 in ae44650
not sure if we will be able to control both independently? |
@trevorld that is a good question. boxplot is a tricky one because size have been used for outlier sizing unless
|
Actually p <- ggplot(mpg, aes(class, hwy))
p + geom_boxplot()
p + geom_boxplot(size=4) # outliers the same size as `size = 1`, `size = 2`, `size = 3` since we are using `outlier.size` default
p + geom_boxplot(size=4, outlier.size = NULL) # now outliers are bigger
|
This PR partly reverses #4884 as the omission of
rename_size = TRUE
in geom_pointrange()and
geom_sf()was intentional since
size` remains a valid aesthetic.