Initializes an annotation stack with a user-specified data.
quad_init(position, data = waiver(), ...)
A string of "top"
, "left"
, "bottom"
, or "right"
indicates which annotation stack should be initialized.
Default dataset to use for the annotation stack. If not specified, a dataset must be provided for each plot added to the layout. Possible values:
waiver()
: try to inherit from the quad_layout()
.
NULL
: no data for the annotation stack.
Any data which can be coerced by
fortify_matrix()
/fortify_data_frame()
Data conversion depends on whether the annotation stack will align the observations:
If aligned, fortify_matrix()
will be applied to convert the data
into a matrix.
If not aligned, fortify_data_frame()
will be used to convert the
data into a data frame.
Additional arguments passed to fortify_matrix()
or
fortify_data_frame()
.