To align axes, it is important to keep the expansion consistent across all
plots in the layout. You can add a layout_expand
object to the layout. For
the quad_layout()
function, you must specify x
and y
arguments. For
other layouts, you can pass the expansion values using ...
directly.
layout_expand(..., x = waiver(), y = waiver())
A list of range expansion constants, used to add padding around
the data to ensure they are placed some distance away from the axes. Use the
convenience function expansion()
to generate the
values.
Same as ...
, but specifically for quad_layout()
.