north | R Documentation |
Plot a north arrow.
north(pos = "topright", col = "grey20", south = FALSE, x = NULL)
pos |
position of the north arrow. It can be one of "topleft", "top", "topright", "right", "bottomright", "bottom", "bottomleft", "left" or a vector of two coordinates in map units (c(x, y)). |
col |
arrow color. |
south |
plot a south arrow instead. |
x |
sf or sp object used to correct the north azimuth |
layoutLayer
library(sf)
mtq <- st_read(system.file("gpkg/mtq.gpkg", package="cartography"))
plot(st_geometry(mtq))
box()
for (i in list("topleft", "top", "topright", "right", "bottomright",
"bottom", "bottomleft", "left", c(746368, 1632993))){
north(i, south = TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.