File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 268
268
aesthetics (@teunbrand , #2800 ).
269
269
* Stricter check on ` register_theme_elements(element_tree) ` (@teunbrand , #6162 )
270
270
* Added ` weight ` aesthetic for ` stat_ellipse() ` (@teunbrand , #5272 )
271
+ * Fixed a bug where the ` guide_custom(order) ` wasn't working (@teunbrand , #6195 )
271
272
272
273
# ggplot2 3.5.1
273
274
Original file line number Diff line number Diff line change @@ -306,8 +306,9 @@ Guides <- ggproto(
306
306
return (no_guides )
307
307
}
308
308
309
- guides $ guides <- c(guides $ guides , custom $ guides )
310
- guides $ params <- c(guides $ params , custom $ params )
309
+ ord <- order(c(names(guides $ guides ), names(custom $ guides )))
310
+ guides $ guides <- c(guides $ guides , custom $ guides )[ord ]
311
+ guides $ params <- c(guides $ params , custom $ params )[ord ]
311
312
312
313
guides
313
314
},
You can’t perform that action at this time.
0 commit comments