Add a plot to connect selected observations
cross_link(
link,
data = waiver(),
...,
on_top = TRUE,
obs_size = 1,
inherit_index = NULL,
inherit_panel = NULL,
inherit_nobs = NULL,
size = NULL,
active = NULL
)
A link_draw()
object that defines how to draw the links,
such as link_line()
.
The dataset to use for the layout. By default,
fortify_matrix()
will convert the data to a matrix. This argument
allows you to change the layout data. If not specified, the original data
will be used.
<dyn-dots> Additional arguments passed to
fortify_matrix()
.
A boolean value indicating whether to draw the link on top of
the plot panel (TRUE
) or below (FALSE
).
A single numeric value that indicates the size of a single
observation, ranging from (0, 1]
.
A boolean value indicating whether to inherit the
ordering index. If TRUE
, will match the layout ordering index with the
data names.
A boolean value indicating whether to inherit the
panel group. If TRUE
, will match the layout panel with the data names.
A boolean value indicating whether to inherit the
number of observations (nobs). If TRUE
, the data
input must be
compatible with the layout data.
The relative size of the plot, can be specified as a
unit()
. Note that for circle_layout()
, all size values
will be interpreted as relative sizes, as this layout type adjusts based on
the available space in the circular arrangement.
A active()
object that defines the context settings when
added to a layout.
The cross_link
function initializes a ggplot
object but does not
initialize any data. Using scheme_data()
to change the internal data if
needed.