rect {pdf2} | R Documentation |
This is a wrapper around the rect
function of the
graphics
package allowing to add pop-ups and / or
hyperlinks for the pdf device.
rect
draws a rectangle (or sequence of rectangles) with the
given coordinates, fill and border colors.
rect(xleft, ybottom, xright, ytop, ..., url, popup)
xleft |
a vector (or scalar) of left x positions. |
ybottom |
a vector (or scalar) of bottom y positions. |
xright |
a vector (or scalar) of right x positions. |
ytop |
a vector (or scalar) of top y positions. |
... |
other arguments to be passed to the
rect function of the graphics package |
url |
URL(s) to which the hyperlink(s) will point |
popup |
text(s) for the pop-up(s) that will be displayed when
one hovers over the (mtext ) text(s) |
The given rectangle(s) are written onto the current plot with the hyperlink(s) and / or pop-up(s) specified.
Tadashi Kadowaki, R Development Core Team and contributors worldwide
See Also rect
, mtext
and text
.