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 18b3623 commit cd56e92Copy full SHA for cd56e92
R/guide-colorbar.R
@@ -291,10 +291,10 @@ GuideColourbar <- ggproto(
291
# We set the defaults in `theme` so that the `params$theme` can still
292
# overrule defaults given here
293
if (params$direction == "horizontal") {
294
- theme$legend.key.width <- rel(5)
+ theme$legend.key.width <- (theme$legend.key.width %||% rel(1)) * 5
295
valid_position <- c("bottom", "top")
296
} else {
297
- theme$legend.key.height <- rel(5)
+ theme$legend.key.height <- (theme$legend.key.height %||% rel(1)) * 5
298
valid_position <- c("right", "left")
299
}
300
0 commit comments