quad_switch {ggalign} | R Documentation |
Determine the Active Context of Quad-Layout
Description
quad_switch()
integrates quad_active()
and quad_anno()
into one
function for ease of use. This function allows you to quickly change the
active context of the quad_layout()
and its annotations.
hmanno
is an alias for quad_switch
, with additional arguments for
backward compatibility
Usage
quad_switch(
position = NULL,
size = NULL,
width = NULL,
height = NULL,
free_guides = waiver(),
initialize = NULL,
what = waiver()
)
hmanno(
position = NULL,
size = NULL,
width = NULL,
height = NULL,
free_guides = waiver(),
initialize = NULL,
what = waiver()
)
Arguments
position |
A string of |
size |
A numeric value or an
|
width , height |
The relative width/height of the main plot, can be a
|
free_guides |
Override the |
initialize |
A boolean indicating whether the annotation stack should be
initialized if it is not already. By default, the annotation stack layout
will attempt to initialize when the data is compatible. If set to |
what |
What should get activated in the annotation stack?
A single number or string of the plot elements in the layout. If |
Value
An object that can be added to quad_layout()
/ggheatmap()
.
See Also
Examples
ggheatmap(matrix(rnorm(81), nrow = 9)) +
anno_top() +
align_dendro()