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 1800a9a commit ae77fabCopy full SHA for ae77fab
R/facet-null.R
@@ -60,8 +60,16 @@ FacetNull <- ggproto("FacetNull", Facet,
60
zeroGrob(), axis_h$bottom, zeroGrob()
61
), ncol = 3, byrow = TRUE)
62
z_matrix <- matrix(c(5, 6, 4, 7, 1, 8, 3, 9, 2), ncol = 3, byrow = TRUE)
63
- grob_widths <- unit.c(grobWidth(axis_v$left), unit(1, "null"), grobWidth(axis_v$right))
64
- grob_heights <- unit.c(grobHeight(axis_h$top), unit(abs(aspect_ratio), "null"), grobHeight(axis_h$bottom))
+ grob_widths <- unit.c(
+ unit(width_cm(axis_v$left), "cm"),
65
+ unit(1, "null"),
66
+ unit(width_cm(axis_v$right), "cm")
67
+ )
68
+ grob_heights <- unit.c(
69
+ unit(height_cm(axis_h$top), "cm"),
70
+ unit(abs(aspect_ratio), "null"),
71
+ unit(height_cm(axis_h$bottom), "cm")
72
73
grob_names <- c("spacer", "axis-l", "spacer", "axis-t", "panel", "axis-b", "spacer", "axis-r", "spacer")
74
75
layout <- gtable_matrix("layout", all,
0 commit comments