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