Learn R Programming

DescTools (version 0.99.53)

Arrow: Insert an Arrow Into a Plot

Description

Places an arrow into a plot. Two additional arrow heads are implemented.

Usage

Arrow(x0, y0, x1, y1, col = par("bg"), border = par("fg"), head = 1,
      cex = 1, lwd = 1, lty = 1)

Value

Nothing returned

Arguments

x0, y0

coordinates of points from which to draw.

x1, y1

coordinates of points to which to draw. At least one must the supplied.

col

the color of the line and background color of the arrow head.

border

color of the arrow head.

head

type of head, can be one out of 1:3.

cex

extension factor for the arrow head.

lwd

line width

lty

line type

Author

Andri Signorell <andri@signorell.net>

See Also

Examples

Run this code
Canvas()
Arrow(1, 1, 0, 0)

Run the code above in your browser using DataLab