Learn R Programming

astro (version 1.2)

cardinal: Add Cardinal Points to a Plot

Description

Adds the four cardinal points to a figure, marking north and east.

Usage

cardinal(rotate = 0, pos = "bottomright", inset = 0.5, len = 2, gap = 1, col = "white", linecol = col, bg = "grey25", lwd = 1, invert = TRUE, south = TRUE, west = TRUE, textrot = TRUE, ...)

Arguments

rotate
rotate cardinal cross clockwise from 'up' (degrees)
pos
position of cross (bottomleft/topleft/topright/bottomright)
inset
inset cross from edge
len
length of cross arrows
gap
size of gap between arrowhead and text
col
colour of arrows/text
linecol
colour of cardinal cross
bg
shading colour
lwd
line width
invert
invert east-west
south
show the southern prong
west
show the western prong
textrot
rotate the text along with the cross
...
arguments to be passed to 'shadowtext'

See Also

The astronomy package: astro.