This function integrates the functionalities of quad_free()
,
quad_alignh()
, quad_alignv()
, and quad_alignb()
into a single
interface.
quad_layout(
data = NULL,
align = NULL,
mapping = aes(),
...,
theme = NULL,
active = NULL,
width = NA,
height = NA
)
Default dataset to use for the layout. If not specified, it must be supplied in each plot added to the layout. By default, it will try to inherit from parent layout. The conversion of data depends on the
align
argument and will use, fortify_data_frame()
or fortify_matrix()
:
If align
is NULL
, a data frame is required. When inherited by the
annotation stack, no transposition will be applied.
If align
is a string, a matrix is required. When inherited by the column
annotation stack, it will be transposed.
A string indicating the alignment direction:
"horizontal"
: Align plots horizontally.
"vertical"
: Align plots vertically.
"both"
: Align plots in both directions.
By default, the function does not align observations.
Default list of aesthetic mappings to use for plot. If not specified, must be supplied in each layer added to the plot.
Additional arguments passed to fortify_matrix()
or
fortify_data_frame()
.
A theme()
used to render the guides
,
title
, subtitle
, caption
, margins
, patch.title
, panel.border
, and
background
. If NULL
(default), will inherit from the parent layout
.
A active()
object that defines the context settings when
added to a layout.
The relative width/height of the main plot, can be a
unit
object.