Learn R Programming

StatDA (version 1.3)

Northarrow: Northarrow

Description

Add a North Arrow to a map.

Usage

Northarrow(Xbottom, Ybottom, Xtop, Ytop, Xtext, Ytext, Alength, Aangle, Alwd,
Tcex)

Arguments

Xbottom
x coordinate of the first point
Ybottom
y coordinate of the first point
Xtop
x coordinate of the second point
Ytop
y coordinate of the second point
Xtext
x coordinate of the label
Ytext
y coordinate of the label
Alength
length of the edges of the arrow head (in inches)
Aangle
angle from the shaft of the arrow to the edge of the arrow head
Alwd
The line width, a positive number
Tcex
numeric character expansion factor

References

C. Reimann, P. Filzmoser, R.G. Garrett, and R. Dutter: Statistical Data Analysis Explained. Applied Environmental Statistics with R. John Wiley and Sons, Chichester, 2008.

Examples

Run this code
plot.new()
Northarrow(0.5,0,0.5,1,0.5,0.5,Alength=0.15,Aangle=15,Alwd=2,Tcex=2)

Run the code above in your browser using DataLab