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
legend_style(by = <aes>, justification = ...) had no visible effect. The update attached the justification to the guide's embedded theme via guide_legend(theme = theme(legend.justification.<side> = ...)), but ggplot2 >= 3.5 does not consult the side-specific justification elements inside a guide's embedded theme — only the whole-plot theme is read. Legends stayed centered along their rail regardless of the justification value. 1.1.9 routes per-guide justification to a whole-plot theme element keyed on the guide's resolved side, so legend_top(by = \"colour\") + legend_style(by = \"colour\", justification = \"left\") now slides the colour legend to the left end of the top rail. If you had a theme(legend.justification.<side> = ...) workaround in your code, you can remove it. (reported by Youtao)
legend_style(justification = ...) without by was writing to the generic legend.justification, which ggplot2 coerces per axis and mis-maps mixed-axis scalars (e.g., \"left\" on a vertical rail becomes 0 — bottom). It now writes to the side-specific theme elements.