View source: R/craft-cross-mark.R
cross_mark | R Documentation |
Add a plot to annotate observations
cross_mark(
mark,
data = waiver(),
...,
obs_size = 1,
inherit_index = NULL,
inherit_panel = NULL,
inherit_nobs = NULL,
size = NULL,
active = NULL
)
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 |
The cross_mark
function initializes a ggplot
object. The underlying data
contains following columns:
.panel
: the panel for the aligned axis. It means x-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 levels c("left", "right")
for horizontal stack
layouts, or c("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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.