View source: R/layout-quad-switch.R
quad_active | R Documentation |
quad_active
: Sets the active context to the quad_layout()
/ggheatmap()
itself.
quad_anno
: Sets the active context to the specified annotation stack
based on the position
argument.
anno_top
: A special case of quad_anno
with position = "top"
.
anno_left
: A special case of quad_anno
with position = "left"
.
anno_bottom
: A special case of quad_anno
with position = "bottom"
.
anno_right
: A special case of quad_anno
with position = "right"
.
quad_active(width = NULL, height = NULL)
quad_anno(
position,
size = NULL,
free_guides = waiver(),
initialize = NULL,
what = waiver()
)
anno_top(
size = NULL,
free_guides = waiver(),
initialize = NULL,
what = waiver()
)
anno_left(
size = NULL,
free_guides = waiver(),
initialize = NULL,
what = waiver()
)
anno_bottom(
size = NULL,
free_guides = waiver(),
initialize = NULL,
what = waiver()
)
anno_right(
size = NULL,
free_guides = waiver(),
initialize = NULL,
what = waiver()
)
width , height |
The relative width/height of the main plot, can be a
|
position |
A string of |
size |
A numeric value or an
|
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 |
By default, quad_anno()
attempts to initialize the annotation stack layout
using data from quad_layout()
/ggheatmap()
. However, in situations where you want to use
different data for the annotation stack, you can set initialize = FALSE
and then provide a custom stack_layout()
.
An object that can be added to quad_layout()
/ggheatmap()
.
quad_switch()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.