We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e381fa3 commit acbf747Copy full SHA for acbf747
R/guides-.R
@@ -522,11 +522,7 @@ Guides <- ggproto(
522
# use inherits from `legend.justification` or `legend.position`, we only
523
# follow the inside elements from the guide theme
524
inside_just <- params[[i]]$theme[["legend.justification.inside"]]
525
- if (is.null(inside_just)) {
526
- inside_justs[[i]] <- default_inside_just
527
- } else {
528
- inside_justs[[i]] <- valid.just(inside_just)
529
- }
+ inside_justs[[i]] <- valid.just(inside_just %||% default_inside_just)
530
inside_positions[[i]] <- params[[i]]$theme[[
531
"legend.position.inside"
532
]] %||% default_inside_position %||% inside_justs[[i]]
0 commit comments