ggstack
is an alias of stack_layout
.
Usage
stack_layout(
data,
direction = NULL,
...,
sizes = NA,
action = NULL,
theme = NULL
)
ggstack(data, direction = NULL, ..., sizes = NA, action = NULL, theme = NULL)
Arguments
- data
A numeric or character vector, a data frame, or a matrix.
- direction
A string of
"horizontal"
or"vertical"
, indicates the direction of the stack layout.- ...
These dots are for future extensions and must be empty.
- sizes
A numeric or a unit object of length
3
indicates the relative widths (direction = "horizontal"
) / heights (direction = "vertical"
).- action
A
plot_action()
object used to define the default plot action in the layout.- theme
A
theme()
used to render theguides
,title
,subtitle
,caption
,margins
,patch.title
,panel.border
, andbackground
. IfNULL
(default), will inherit from the parentlayout
.
Examples
ggstack(matrix(rnorm(100L), nrow = 10L)) + align_dendro()