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.
legend.position
1 parent 5e6028e commit f584b40Copy full SHA for f584b40
R/guides-.R
@@ -479,7 +479,7 @@ Guides <- ggproto(
479
if (length(default_position) == 2) {
480
default_position <- "inside"
481
}
482
- if (default_position == "none") {
+ if (!default_position %in% c(.trbl, "inside")) {
483
return(zeroGrob())
484
485
@@ -598,11 +598,7 @@ Guides <- ggproto(
598
599
600
# Determine default direction
601
- direction <- switch(
602
- position,
603
- inside = , left = , right = "vertical",
604
- top = , bottom = "horizontal"
605
- )
+ direction <- switch(position, top = , bottom = "horizontal", "vertical")
606
607
# Populate missing theme arguments
608
theme$legend.box <- theme$legend.box %||% direction
0 commit comments