This function allows users to define links between marked observations and plot panel (e.g., for creating visual connections for related data), which could help explain the observations.
mark_draw(.draw, ...)
A function used to draw the links. The function must return a
grob()
object. If the function does not return a valid
grob
, nothing will be drawn. The input data for the function must contain
two arguments: a data frame for the panel side coordinates and a data frame
for the marked observation coordinates.
<dyn-dots> A list of formulas, where each side
of the formula should be an integer
or character
index of the original
data, or a range_link()
object defining the linked observations. Use
NULL
to indicate no link on that side. You can also combine these by
wrapping them into a single list()
. If only the left-hand side of the
formula exists, you can input it directly. For integer indices, wrap them
with I()
to use the ordering from the layout. You can also use
waiver()
to inherit values from the other group.
mark_line()
mark_tetragon()
mark_triangle()
.mark_draw()