rect {pdf2}R Documentation

Draw One or More Rectangles

Description

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.

Usage

rect(xleft, ybottom, xright, ytop, ..., url, popup)

Arguments

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)

Value

The given rectangle(s) are written onto the current plot with the hyperlink(s) and / or pop-up(s) specified.

Author(s)

Tadashi Kadowaki, R Development Core Team and contributors worldwide

See Also

See Also rect, mtext and text.


[Package pdf2 version 2.7.1.4 Index]