ggiraph (version 0.3.0)

interactive_text_grob: Generate interactive grob text

Description

This function can be used to generate interactive grob text.

Usage

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)

Arguments

label
A character or expression vector. Other objects are coerced by as.graphicsAnnot.
x
A numeric vector or unit object specifying x-values.
y
A numeric vector or unit object specifying y-values.
tooltip
tooltip associated with rectangles
onclick
javascript action to execute when rectangle is clicked
data_id
identifiers to associate with rectangles
just
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"
hjust
A numeric vector specifying horizontal justification. If specified, overrides the just setting.
vjust
A numeric vector specifying vertical justification. If specified, overrides the just setting.
rot
The angle to rotate the text.
check.overlap
A logical value to indicate whether to check for and omit overlapping text.
default.units
A string indicating the default units to use if x or y are only given as numeric vectors.
name
A character identifier.
gp
An object of class gpar, typically the output from a call to the function gpar. This is basically a list of graphical parameter settings.
vp
A Grid viewport object (or NULL).