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
* fix: update test expectation
* update visual tests
* Make merged-legend title order match legend-entry order
ggplot2's Guides$merge() breaks ties between same-order guides using a
content hash (rlang::hash()), which has no relation to aesthetic
declaration order. A recent rlang release changed that hash, flipping
the tie-break and silently reordering combined legend titles (e.g.
"factor(vs)<br />factor(cyl)" became "factor(cyl)<br />factor(vs)").
Legend entries themselves are named independently, always in aesthetic
declaration order (layers2traces.R's discreteScales), so title order
and entry order could now disagree. Reorder guides in
get_gdefs_ggproto() by (explicit guide order, aesthetic declaration
order) so the title always agrees with the entries it labels,
regardless of upstream hashing changes.
* fix: replace deprecated .Label/.Names structure() names in tests
Silences the R CMD check NOTE about deprecated special names in
structure() calls.
* Revert changes to visual tests
* Update other visual tests
* Update news
Copy file name to clipboardExpand all lines: NEWS.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@
9
9
10
10
* Closed #2483: `save_image()` no longer embeds Windows file paths directly into Python source passed to `reticulate`, fixing static image export with Kaleido on Windows.
11
11
12
+
*#2495: `ggplotly()` now keeps merged legend titles in sync with their legend entries, fixing a case where an upstream change in `{rlang}`'s hashing could silently reorder combined legend titles (e.g. `factor(vs)<br />factor(cyl)`) out of step with the entries they label.
0 commit comments