stack_switch {ggalign} | R Documentation |
Determine the active context of stack layout
Description
stack_active
is an alias for stack_switch()
, which sets what = NULL
by
default.
Usage
stack_switch(sizes = NULL, what = waiver(), ...)
stack_active(sizes = NULL, ...)
Arguments
sizes |
A numeric value or a |
what |
What should get activated for the stack layout?
A single number or string of the plot elements in the layout. If |
... |
These dots are for future extensions and must be empty. |
Value
A stack_switch
object which can be added to stack_layout()
.
Examples
stack_discrete("h", matrix(1:9, nrow = 3L)) +
ggheatmap() +
# ggheamtap will set the active context, directing following addition
# into the heatmap plot area. To remove the heatmap active context,
# we can use `stack_active()` which will direct subsequent addition into
# the stack
stack_active() +
# here we add a dendrogram to the stack.
align_dendro()