Learn R Programming

geo (version 1.4-3)

Arrow: Add arrow to plot.

Description

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

Usage

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

Run this code
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")

Run the code above in your browser using DataLab