stack_active {ggalign} | R Documentation |
Determine the active context of stack layout
Description
Determine the active context of stack layout
Usage
stack_active(
sizes = NULL,
guides = NA,
free_labs = NA,
free_spaces = NA,
plot_data = NA,
theme = NULL,
what = NULL
)
Arguments
sizes |
A numeric or unit object of length |
guides |
A boolean value or a string containing one or more of
|
free_labs |
A boolean value or a string containing one or more of
|
free_spaces |
A character specifies the ggplot elements which won't
count space sizes when alignment. If |
plot_data |
A function used to transform the plot data before rendering.
By default, it'll inherit from the parent layout. If no parent layout, the
default is to not modify the data. Use Used to modify the data after layout has been created, but before the data is
handled of to the ggplot2 for rendering. Use this hook if the you needs
change the default data for all |
theme |
A theme() object to rendering the guides, title, subtitle, caption, margins and background. Only used when position is |
what |
What should get activated for the stack layout? Possible values are follows:
|
Value
A stack_active
object which can be added into
StackLayout.
Examples
ggstack(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()