cross_mark {ggalign} | R Documentation |
Add a plot to annotate observations
Description
Add a plot to annotate observations
Usage
cross_mark(
mark,
data = waiver(),
...,
obs_size = 1,
inherit_index = NULL,
inherit_panel = NULL,
inherit_nobs = NULL,
size = NULL,
active = NULL
)
Arguments
mark |
A |
data |
The dataset to use for the layout. By default,
|
... |
<dyn-dots> Additional arguments passed to
|
obs_size |
A single numeric value that indicates the size of a single
observation, ranging from |
inherit_index |
A boolean value indicating whether to inherit the
ordering index. If |
inherit_panel |
A boolean value indicating whether to inherit the
panel group. If |
inherit_nobs |
A boolean value indicating whether to inherit the
number of observations (nobs). If |
size |
The relative size of the plot, can be specified as a
|
active |
A |
ggplot2 Specification
The cross_mark
function initializes a ggplot
object. The underlying data
contains following columns:
-
.panel
: the panel for the aligned axis. It meansx-axis
for vertical stack layout (including top and bottom annotation),y-axis
for horizontal stack layout (including left and right annotation). -
.names
(vec_names()
) and.index
(vec_size()
/NROW()
): a character names (only applicable when names exists) and an integer of index of the original data. -
.hand
: A factor with levelsc("left", "right")
for horizontal stack layouts, orc("top", "bottom")
for vertical stack layouts, indicating the position of the linked observations.
You can use scheme_data()
to modify the internal data if needed.