align_panel {ggalign} | R Documentation |
This is similar with ggalign()
function, but it will always use the layout
panel data. ggpanel
is just an alias of align_panel
.
align_panel(
mapping = aes(),
size = NULL,
free_labs = waiver(),
free_spaces = waiver(),
plot_data = waiver(),
limits = TRUE,
facet = TRUE,
set_context = TRUE,
order = NULL,
name = NULL
)
ggpanel(
mapping = aes(),
size = NULL,
free_labs = waiver(),
free_spaces = waiver(),
plot_data = waiver(),
limits = TRUE,
facet = TRUE,
set_context = TRUE,
order = NULL,
name = NULL
)
mapping |
Additional default list of aesthetic mappings to use for plot. |
size |
Plot size, can be an unit object. |
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 |
limits |
A boolean value indicates whether to set the layout limtis for the plot. |
facet |
A boolean value indicates whether to set the layout facet for
the plot. If this is |
set_context |
A single boolean value indicates whether to set the active
context to current plot. If |
order |
An single integer for the layout order. |
name |
A string of the plot name. Used to switch the active context in
|
A AlignPanel
object.
align_panel
initializes a ggplot
data and mapping
.
The internal will always use a default mapping of aes(y = .data$.y)
or
aes(x = .data$.x)
.
The data in the underlying ggplot
object contains following columns:
.panel
: the panel for current layout axis.
.index
: the index of the original layout data.
.x
or .y
: the x
or y
coordinates
ggheatmap(matrix(rnorm(81), nrow = 9)) +
hmanno("top") +
ggalign() +
geom_point(aes(y = value))