stack_cross {ggalign} | R Documentation |
Arrange plots crosswise horizontally or vertically
Description
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 ofstack_cross
that setsdirection = "v"
for vertical alignment. -
stack_crossh
: A special case ofstack_cross
that setsdirection = "h"
for horizontal alignment.
Usage
stack_cross(direction, data = NULL, ..., theme = NULL, sizes = NA)
stack_crossv(data = NULL, ...)
stack_crossh(data = NULL, ...)
Arguments
direction |
A string indicating the direction of the stack layout,
either |
data |
Default dataset to use for the layout. If not specified, it must be supplied in each plot added to the layout, |
... |
Additional arguments passed to |
theme |
A |
sizes |
A numeric value or a |