@@ -500,7 +500,7 @@ Guides <- ggproto(
500
500
}
501
501
502
502
# prepare the position of inside legends
503
- default_inside_just <- calc_element(" legend.justification .inside" , theme )
503
+ default_inside_just <- calc_element(" legend.just .inside" , theme )
504
504
default_inside_position <- calc_element(" legend.position.inside" , theme )
505
505
506
506
groups <- data_frame0(
@@ -514,9 +514,9 @@ Guides <- ggproto(
514
514
for (i in which(positions == " inside" )) {
515
515
# the actual inside position and justification can be set in each guide
516
516
# by `theme` argument, here, we won't use `calc_element()` which will
517
- # use inherits from `legend.justification ` or `legend.position`, we only
517
+ # use inherits from `legend.just ` or `legend.position`, we only
518
518
# follow the inside elements from the guide theme
519
- just <- params [[i ]]$ theme [[" legend.justification .inside" ]]
519
+ just <- params [[i ]]$ theme [[" legend.just .inside" ]]
520
520
just <- valid.just(just %|| % default_inside_just )
521
521
coord <- params [[i ]]$ theme [[" legend.position.inside" ]]
522
522
coord <- coord %|| % default_inside_position %|| % just
@@ -541,7 +541,7 @@ Guides <- ggproto(
541
541
if (position == " inside" ) {
542
542
adjust <- theme(
543
543
legend.position.inside = groups $ key $ coords [[i ]],
544
- legend.justification .inside = groups $ key $ justs [[i ]]
544
+ legend.just .inside = groups $ key $ justs [[i ]]
545
545
)
546
546
}
547
547
adjust <- add_theme(theme , adjust , " internal theme settings" )
@@ -615,7 +615,7 @@ Guides <- ggproto(
615
615
stretch_y <- any(unlist(lapply(heights , unitType )) == " null" )
616
616
617
617
# Global justification of the complete legend box
618
- global_just <- paste0(" legend.justification ." , position )
618
+ global_just <- paste0(" legend.just ." , position )
619
619
global_just <- valid.just(calc_element(global_just , theme ))
620
620
621
621
if (position == " inside" ) {
0 commit comments