Skip to content

Commit 4dd4970

Browse files
Yunuuuuteunbrand
andauthored
apply suggestion
Co-authored-by: Teun van den Brand <[email protected]>
1 parent acbf747 commit 4dd4970

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

R/guides-.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,8 +515,7 @@ Guides <- ggproto(
515515
# we grouped the legends by the positions, for inside legends, they'll be
516516
# splitted by the actual inside coordinate
517517
groups <- positions
518-
for (i in seq_along(positions)) {
519-
if (identical(positions[i], "inside")) {
518+
for (i in seq_along(positions)[positions == "inside"]) {
520519
# the actual inside position and justification can be set in each guide
521520
# by `theme` argument, here, we won't use `calc_element()` which will
522521
# use inherits from `legend.justification` or `legend.position`, we only

0 commit comments

Comments
 (0)