You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
geom_area with negative y not working in ggplot2 3.2.0 #3390
@thomasp85 Is this somehow related to the rewritten polygon rendering code? We may have to consider a hotfix release, since this is a serious regression.
This is due to GeomArea/GeomRibbon now sorting their data in setup_data instead of in draw_panel. PositionStack changes the ordering of the data and that is no longer resolved as it comes after setup_data.
There are two ways around this.
Make sure PositionStack doesn't change the ordering of data
Make a secondary sort in draw_panel()
I generally prefer 1) as it is how I think positions should behave (i.e. not fiddle with data ordering), but it may have unforeseen consequences 🤷♂️
I agree this should be fixed in a hot fix (and we really should have some tests to catch this) cc @hadley
If I recall correctly, the ordering in PositionStack exists to fix my first ever bug report (#1552) 🙂. So it is there for a reason, but it's possible that reason has been obviated by other changes since. I can try to look into it this weekend.
Some weeks have passed. Do we start the process? While this issue should be hot-fixed, this might not be as serious as we thought at first in terms of the number of users affected, considering the fact there's no other issues filed than this one. So, if you are very busy (sorry, I don't think I can review #3401...), I think it's okay not to hurry so much.
But, I'm a bit worrying about that the CRAN check is all red probably due to #3394 (, which seems already fixed by @paleolimbot). Do you get any serious warnings about this from CRAN people?
Activity
yutannihilation commentedon Jul 4, 2019
clauswilke commentedon Jul 4, 2019
Rendered reprex below.
@thomasp85 Is this somehow related to the rewritten polygon rendering code? We may have to consider a hotfix release, since this is a serious regression.
Created on 2019-07-03 by the reprex package (v0.3.0)
thomasp85 commentedon Jul 4, 2019
I’ll look into it.
thomasp85 commentedon Jul 4, 2019
This is due to
GeomArea/GeomRibbonnow sorting their data insetup_datainstead of indraw_panel.PositionStackchanges the ordering of the data and that is no longer resolved as it comes aftersetup_data.There are two ways around this.
draw_panel()I generally prefer 1) as it is how I think positions should behave (i.e. not fiddle with data ordering), but it may have unforeseen consequences 🤷♂️
I agree this should be fixed in a hot fix (and we really should have some tests to catch this) cc @hadley
hadley commentedon Jul 4, 2019
thomasp85 commentedon Jul 4, 2019
Let's wait a week before we start release process
karawoo commentedon Jul 5, 2019
If I recall correctly, the ordering in PositionStack exists to fix my first ever bug report (#1552) 🙂. So it is there for a reason, but it's possible that reason has been obviated by other changes since. I can try to look into it this weekend.
karawoo commentedon Jul 17, 2019
I've opened a PR that will address this, but in the meantime
geom_ribbon()still works:Created on 2019-07-17 by the reprex package (v0.3.0)
yutannihilation commentedon Jul 23, 2019
@thomasp85 @hadley
Some weeks have passed. Do we start the process? While this issue should be hot-fixed, this might not be as serious as we thought at first in terms of the number of users affected, considering the fact there's no other issues filed than this one. So, if you are very busy (sorry, I don't think I can review #3401...), I think it's okay not to hurry so much.
But, I'm a bit worrying about that the CRAN check is all red probably due to #3394 (, which seems already fixed by @paleolimbot). Do you get any serious warnings about this from CRAN people?
https://cran.rstudio.com/web/checks/check_results_ggplot2.html
thomasp85 commentedon Jul 23, 2019
I’m currently on vacation (this week and next). I’ll begin release once I’m back
yutannihilation commentedon Jul 23, 2019
OK. Have a nice vacation!
Do not change order of positive and negative values in PositionStack (f…
Do not change order of positive and negative values in PositionStack (f…
Do not change order of positive and negative values in PositionStack (f…
lock commentedon Feb 9, 2020
This old issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with reprex) and link to this issue. https://reprex.tidyverse.org/