This function can be used to generate interactive grob text.
interactive_text_grob(label, x = unit(0.5, "npc"), y = unit(0.5,
"npc"), tooltip = NULL, onclick = NULL, data_id = NULL,
just = "centre", hjust = NULL, vjust = NULL, rot = 0,
check.overlap = FALSE, default.units = "npc", name = NULL,
gp = gpar(), vp = NULL)
A character or expression vector. Other
objects are coerced by as.graphicsAnnot
.
A numeric vector or unit object specifying x-values.
A numeric vector or unit object specifying y-values.
tooltip associated with rectangles
javascript action to execute when rectangle is clicked
identifiers to associate with rectangles
The justification of the text
relative to its (x, y) location. If there are two values, the first
value specifies horizontal justification and the second value specifies
vertical justification. Possible string values are: "left"
,
"right"
, "centre"
, "center"
, "bottom"
,
and "top"
. For numeric values, 0 means left (bottom) alignment
and 1 means right (top) alignment.
A numeric vector specifying horizontal justification.
If specified, overrides the just
setting.
A numeric vector specifying vertical justification.
If specified, overrides the just
setting.
The angle to rotate the text.
A logical value to indicate whether to check for and omit overlapping text.
A string indicating the default units to use
if x
or y
are only given as numeric vectors.
A character identifier.
An object of class gpar
, typically the output
from a call to the function gpar
. This is basically
a list of graphical parameter settings.
A Grid viewport object (or NULL).