Learn R Programming

RSVGTipsDevice (version 0.7.0)

setSVGShapeToolTip: Set the tool tip for the next graphics shape drawn with the RSVGTips device.

Description

Set the tool tip for the next graphics shape drawn with the RSVGTips device.

Usage

setSVGShapeToolTip(title = NULL, desc = NULL, desc1 = desc, desc2 = NULL)

Arguments

title
A title for the tool tip box. (optional)
desc
The text of the tool tip.
desc1
The first line of text of the tool tip.
desc2
The second line of text of the tool tip (used when the tool tip mode is 2.)

Value

  • Returns an invisible NULL.

Details

This function sets tool tip text that will be used by the next graphics shape drawn with RSVGTipsDevice. The RSVGTips device "consumes" the tooltip with the first shape that it draws, e.g., using rect, points, polygon, etc. If multiple objects are drawn (e.g., by supplying a vector to points), only the first shape drawn will have a tooltip. Note that lines does NOT use a tooltip.

See Also

Examples here: RSVGTipsDevice

Examples

Run this code
setSVGShapeToolTip(title="A rectangle", desc="that is yellow")

Run the code above in your browser using DataLab