View source: R/spatial_functions.R
northarrow | R Documentation |
This function adds a north arrow to a map created with sp::plot.
northarrow(loc, size, bearing = 0, cols, cex = 1, ...)
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 |
A sp::plot object with a north arrow.
Taken from Auxiliary Cartographic Functions in R: North Arrow, Scale Bar, and Label with a Leader Arrow, Tanimura, 2007. For more information see here.
## Not run:
northarrow(c(-124, 26), size = 1, cex = 1, bearing = 0) ## Do not run.
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.