ggstack
is an alias of stack_layout
.
stack_layout(
data,
direction = NULL,
sizes = NA,
...,
guides = waiver(),
theme = NULL
)ggstack(
data,
direction = NULL,
sizes = NA,
...,
guides = waiver(),
theme = NULL
)
A StackLayout
object.
A numeric or character vector, a data frame, or a matrix.
A string of "horizontal"
or "vertical"
, indicates the
direction of the stack layout.
A numeric or unit object of length 3
indicates
the relative widths (direction = "horizontal"
) / heights (direction = "vertical"
).
<dyn-dots> A list of plots, ususally the
ggplot object. Use NULL
to indicate an empty spacer.
A string containing one or more of "t"
, "l"
, "b"
, and "r"
indicates which side of guide legends should be collected. If NULL
, no guide legends will be collected. If waiver()
, it will inherit from the parent layout
A theme()
used to render the guides
,
title
, subtitle
, caption
, margins
, patch.title
, panel.border
, and
background
. If NULL
(default), will inherit from the parent layout
.
ggstack(matrix(rnorm(100L), nrow = 10L)) + align_dendro()
Run the code above in your browser using DataLab