View source: R/layout-chain-stack-switch.R
stack_switch | R Documentation |
stack_active
is an alias for stack_switch()
, which sets what = NULL
by
default.
stack_switch(sizes = NULL, what = waiver(), ...)
stack_active(sizes = NULL, ...)
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. |
A stack_switch
object which can be added to stack_layout()
.
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.