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
Recent changes in ggplot2 (presumably part of v. 3.5.0) have caused the axis lines (primary and secondary) of coord_trans_xy() to be rendered in the wrong positions:
The ticks and labels all are correct, so this appears to be related to the drawing of the axis lines themselves. I've been going through as much of the ggplot2 internals as I can, and I haven't really been able to figure out where in the code it is determined where to plot the axis lines. Maybe @teunbrand has some insight about what I need to tweak to make sure the axis lines render properly given the recent changes to the internals?
The text was updated successfully, but these errors were encountered:
So the axes rely on the coord to transform c(-Inf, Inf) to the appropriate range (normally 0-1, barring some exceptions). Typically, coords do this by squishing (scales::oob_squish_infinite). I'm not recognising any squishing happening in CoordTransXY$transform. If it is not the squish, I'd take a look at the special cases where all x or y variables are non-finite.
In my testing, I found that the axis lines never have non-finite values @teunbrand. When the coordinates for the axis lines are passed to CoordTransXY$transform they always have finite x and y values. In fact, I found it quite odd that those fixed values seemed to correspond to the opposite axis (e.g., the coordinates for the bottom axis would all have the y-value of where the top axis should be).
Recent changes in ggplot2 (presumably part of v. 3.5.0) have caused the axis lines (primary and secondary) of
coord_trans_xy()
to be rendered in the wrong positions:Created on 2024-03-01 with reprex v2.1.0
The ticks and labels all are correct, so this appears to be related to the drawing of the axis lines themselves. I've been going through as much of the ggplot2 internals as I can, and I haven't really been able to figure out where in the code it is determined where to plot the axis lines. Maybe @teunbrand has some insight about what I need to tweak to make sure the axis lines render properly given the recent changes to the internals?
The text was updated successfully, but these errors were encountered: