Arrow: Add arrow to plot.

Description Usage Arguments Value See Also Examples

View source: R/Arrow.R

Description

Adds arrow to a plot, given base and point position along with half angle.

Usage

1
Arrow(pos, angle = 15, col = 2)

Arguments

pos

List with components lat, lon of length 2 or more (only first two used).

angle

Angle (< 90) determining arrow sharpness

col

Arrow color, defaults to color 2 of palette in effect.

Value

Mostly used for plotting, but the function returns the arrow polygon invisibly.

See Also

geopolygon, invProj

Examples

1
2
3
4
5
geoplot()
Arrow(list(lat=c(65,65.5),lon=c(-19, -18)),angle=60,col="brown")
Arrow(list(lat=c(65,65.5),lon=c(-19, -18)),angle=45,col="red")
Arrow(list(lat=c(65,65.5),lon=c(-19, -18)),angle=30,col="green")
Arrow(list(lat=c(65,65.5),lon=c(-19, -18)),angle=30,col="blue")

Example output

Loading required package: maps
Loading required package: mapdata

geo documentation built on May 29, 2017, 5:36 p.m.