Skip to content

Commit 4d99445

Browse files
author
Kirill Müller
committed
fix: use height_cm instead of width_cm
1 parent 1da88f3 commit 4d99445

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/facet-wrap.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ facet_render.wrap <- function(facet, panel, coord, theme, geom_grobs) {
164164
# If not listed, assume is unit(1, "null")
165165
widths <- list(
166166
axis_l = width_cm(grobs$axis_l),
167-
vspace = ifelse(layout$COL == ncol, 0, height_cm(theme$panel.margin))
167+
vspace = ifelse(layout$COL == ncol, 0, width_cm(theme$panel.margin))
168168
)
169169
heights <- list(
170170
panel = unit(aspect_ratio, "null"),

0 commit comments

Comments
 (0)