text {pdf2}R Documentation

Add Text to a Plot

Description

This is a wrapper around the text function of the graphics package allowing to add pop-ups and / or hyperlinks for the pdf device.

'text' draws the strings given in the vector 'labels' at the coordinates given by 'x' and 'y'. 'y' may be missing since 'xy.coords(x,y)' is used for construction of the coordinates.

Usage

text(..., url, popup, pcol = "cyan", border = c(0, 0, 1))

Arguments

... arguments for the text function of the graphics package
url character vector of length one giving the URL for the hyperlink to which the text should point upon clicking
popup character vector of length one giving the text that should be displayed in the pop-up that appears when hovering over the text
pcol color of the border around the text that is often used to indicate there is a link; defaults to "cyan"
border horizontal corner radius, vertical corner radius, and border width

Value

The strings in the 'labels' argument are drawn on the current device as specified.

Author(s)

Tadashi Kadowaki, R Development Core Team and contributors worldwide

See Also

text


[Package pdf2 version 2.7.1.4 Index]