Plots a neat North arrow

Share:

Description

Simple and configurable alternative to draw a "North Arrow" on maps.

Usage

1
2
3
4
5
6
plotArrow(shape="",
        pos = 1,
        offset.arrow = c(0, 0),
        north.lwd = par()$lwd+2,
        north.col = par()$col,
        ...)

Arguments

shape

The shape file used to estimate the x and y coordinates on where to plot the arrow's polygons

pos

Where to position the arrow: 1 SW, 2 SE, 3 NE, 4 NW.

offset.arrow

Offset pair (x.offset, y.offset).

north.lwd

Line width for the North lines.

north.col

Color to apply to the North lines

...

With ..., it is possible to specify the color and thickness of the arrow via the col and lwd parameters. Overall magnification is controlled by cex.

Note

This implementation should support adding the scale bar.

Author(s)

A.M. Sajo-Castelli

See Also

plotLayers

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.