northarrow: Adding North Arrow to Maps

View source: R/spatial_functions.R

northarrowR Documentation

Adding North Arrow to Maps

Description

This function adds a north arrow to a map created with sp::plot.

Usage

northarrow(loc, size, bearing = 0, cols, cex = 1, ...)

Arguments

loc

A two value numeric vector. The longitude and latitude where the north arrow is to be.

size

numeric. Size of the north arrow.

bearing

numeric. Angle of the north arrow.

cols

character. Color of the north arrow.

cex

numeric. Size of the letters.

...

Other arguments

Value

A sp::plot object with a north arrow.

Author(s)

Omer Kara

References

Taken from Auxiliary Cartographic Functions in R: North Arrow, Scale Bar, and Label with a Leader Arrow, Tanimura, 2007. For more information see here.

Examples

## Not run: 
northarrow(c(-124, 26), size = 1, cex = 1, bearing = 0) ## Do not run.

## End(Not run)


omerkara/okara documentation built on Nov. 21, 2023, 7:56 p.m.