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(
514514
515515 # we grouped the legends by the positions, for inside legends, they'll be
516516 # splitted by the actual inside coordinate
517- for (i in seq_along (positions )[ positions == " inside" ] ) {
517+ for (i in which (positions == " inside" ) ) {
518518 # the actual inside position and justification can be set in each guide
519519 # by `theme` argument, here, we won't use `calc_element()` which will
520520 # use inherits from `legend.justification` or `legend.position`, we only
@@ -528,8 +528,8 @@ Guides <- ggproto(
528528 " legend.position.inside"
529529 ]] %|| % default_inside_position %|| % inside_justs [[i ]]
530530 )
531- }
532531 }
532+
533533
534534 positions <- positions [keep ]
535535 inside_positions <- inside_positions [keep ]
You can’t perform that action at this time.
0 commit comments