Learn R Programming

cartography (version 1.4.1)

north: North Arrow

Description

Plot a north arrow.

Usage

north(pos = "topright", col = "grey20", south = FALSE)

Arguments

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 (c(x, y)).
col
arrow color.
south
plot a south arrow instead.

See Also

layoutLayer

Examples

Run this code
data("nuts2006")
plot(nuts0.spdf, col = "grey60",border = "grey20", add=FALSE)
box()
for (i in list("topleft", "top", "topright", "right", "bottomright", 
               "bottom", "bottomleft", "left", c(3502127, 4770427))){
  north(i)
}

plot(nuts0.spdf)
box()
for (i in list("topleft", "top", "topright", "right", "bottomright", 
               "bottom", "bottomleft", "left", c(3502127, 4770427))){
  north(i, south = TRUE)
}

Run the code above in your browser using DataLab