This function can be used to generate interactive grob segments.
interactive_segments_grob(x0 = unit(0, "npc"), y0 = unit(0, "npc"),
x1 = unit(1, "npc"), y1 = unit(1, "npc"), tooltip = NULL,
onclick = NULL, data_id = NULL, default.units = "npc",
arrow = NULL, name = NULL, gp = gpar(), vp = NULL)
Numeric indicating the starting x-values of the line segments.
Numeric indicating the starting y-values of the line segments.
Numeric indicating the stopping x-values of the line segments.
Numeric indicating the stopping y-values of the line segments.
tooltip associated with segments
javascript action to execute when segment is clicked
identifiers to associate with segments
A string.
A list describing arrow heads to place at either end
of the line segments, as produced by the arrow
function.
A character identifier.
An object of class gpar
.
A Grid viewport object (or NULL).