The stack_cross
function is derived from stack_discrete()
and allows
for different layout ordering indices within a single layout.
Two aliases are provided for convenience:
stack_crossv
: A special case of stack_cross
that sets
direction = "v"
for vertical alignment.
stack_crossh
: A special case of stack_cross
that sets
direction = "h"
for horizontal alignment.
stack_cross(direction, data = NULL, ..., theme = NULL, sizes = NA)stack_crossv(data = NULL, ...)
stack_crossh(data = NULL, ...)
A string indicating the direction of the stack layout,
either "h"
(horizontal
) or "v"
(vertical
).
Default dataset to use for the layout. If not specified, it must be supplied in each plot added to the layout, fortify_matrix()
will be used to
convert the data to a matrix.
Additional arguments passed to fortify_matrix()
.
A theme()
object used to customize various
elements of the layout, including guides
, title
, subtitle
, caption
,
margins
, panel.border
, and background
. By default, the theme will
inherit from the parent layout
. It also controls the panel spacing for all
plots in the layout.
A numeric value or a unit
object. When used for
the quad_layout()
annotation, it must be of length 1
. When used in the
stack_layout()
with a nested quad_layout()
, it should be of length
3
, specifying the relative heights (for direction = "h"
) or widths (for
direction = "v"
) to be applied to the layout.
ggcross()