File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -514,7 +514,7 @@ Guides <- ggproto(
514
514
515
515
# we grouped the legends by the positions, for inside legends, they'll be
516
516
# splitted by the actual inside coordinate
517
- for (i in seq_along (positions )[ positions == " inside" ] ) {
517
+ for (i in which (positions == " inside" ) ) {
518
518
# the actual inside position and justification can be set in each guide
519
519
# by `theme` argument, here, we won't use `calc_element()` which will
520
520
# use inherits from `legend.justification` or `legend.position`, we only
@@ -528,8 +528,8 @@ Guides <- ggproto(
528
528
" legend.position.inside"
529
529
]] %|| % default_inside_position %|| % inside_justs [[i ]]
530
530
)
531
- }
532
531
}
532
+
533
533
534
534
positions <- positions [keep ]
535
535
inside_positions <- inside_positions [keep ]
You can’t perform that action at this time.
0 commit comments