arrows: Arrows

Description Usage Arguments Value Examples

Description

Front end to the graphics::arrows function allowing simplified specification of end points

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
arrows(x0, y0, ...)

## S4 method for signature 'numeric,numeric'
arrows(x0, y0, x1, y1, length = 4, angle = 15, gap, ...)

## S4 method for signature 'xy,xy'
arrows(x0, y0, ...)

## S4 method for signature 'xy,missing'
arrows(x0, y0, ..., circular = FALSE)

Arguments

x0, y0

two numeric vectors of a single object of class "xy"

...

additional arguments passed on to graphics::segments

x1, y1

two numeric vectors of a single object of class "xy"

length

length of the arrow head barb, in MILLIMETRES, see in2mm

angle

as for graphics::arrows

gap

numeric of length 1 or 2 giving the size of any gap to be left between the arrow and the points which it connects, in MILLIMETRES

circular

logical: should the arrows link up with the initial point? (Single location argument only.)

Value

invisible null value

Examples

1
2
3
z <- with(roundTrip, setNames(complex(real = Longitude, imaginary = Latitude), Locality))
plot(z, asp = 1, pch = 20, cex = 0.7, xlab = "Longitude", ylab = "Latitude")
arrows(z, cyc(z), col = "red", gap = c(0,1.5))

BillVenables/WWRGraphics documentation built on Feb. 1, 2021, 12:13 p.m.