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
In the plot below, there are 2 things that are somewhat bothersome:
The geom_vline() doesn't show up if I leave out geom_segment(), due to the fact that xintercept is a valid aesthetic for a continuous scale, but not a discrete scale.
The geom_vline() is right at the edge of the panel, because the discrete limits are expanded from the discrete range, not the continuous range.
The first thing is due to #3342, which I think might be worth fixing at some point. The second thing is the purpose of this issue. Should we change the limit expansion so that discrete scales are expanded from their continuous limits?
I no longer think we should do this. It would change a bunch of cases where the width of a boxplot/bar/violin is included in the expansion calculation and it doesn't look quite right.
In the plot below, there are 2 things that are somewhat bothersome:
geom_vline()
doesn't show up if I leave outgeom_segment()
, due to the fact thatxintercept
is a valid aesthetic for a continuous scale, but not a discrete scale.geom_vline()
is right at the edge of the panel, because the discrete limits are expanded from the discrete range, not the continuous range.The first thing is due to #3342, which I think might be worth fixing at some point. The second thing is the purpose of this issue. Should we change the limit expansion so that discrete scales are expanded from their continuous limits?
Created on 2023-12-14 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: