text {pdf2} | R Documentation |
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.
text(..., url, popup, pcol = "cyan", border = c(0, 0, 1))
... |
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 |
The strings in the 'labels' argument are drawn on the current device as specified.
Tadashi Kadowaki, R Development Core Team and contributors worldwide