View source: R/layout-quad-switch.R
quad_switch | R Documentation |
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
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()
)
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 |
An object that can be added to quad_layout()
/ggheatmap()
.
quad_active()
/quad_anno()
ggheatmap(matrix(rnorm(81), nrow = 9)) +
anno_top() +
align_dendro()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.