Learn R Programming

DescTools (version 0.99.43)

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)

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

Value

Nothing returned

See Also

arrows

Examples

Run this code
# NOT RUN {
Canvas()
Arrow(1, 1, 0, 0)
# }

Run the code above in your browser using DataLab