Skip to content

Commit 1d22c2e

Browse files
committed
fallback for boolean space_free
1 parent 97edd62 commit 1d22c2e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/facet-.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,8 @@ Facet <- ggproto("Facet", NULL,
213213
heights <- unit(rep(1 * abs(aspect_ratio %||% 1), dim[1]), "null")
214214

215215
# When space are free, let panel parameter limits determine size of panel
216-
space <- params$space_free %||% list(x = FALSE, y = FALSE)
216+
space <- dual_param(params$space_free, default = list(x = FALSE, y = FALSE))
217+
217218
if (space$x) {
218219
idx <- layout$PANEL[layout$ROW == 1]
219220
widths <- vapply(idx, function(i) diff(ranges[[i]]$x.range), numeric(1))

0 commit comments

Comments
 (0)