addnortharrow: Plot North Arrow

View source: R/northarrow.R

addnortharrowR Documentation

Plot North Arrow

Description

Plot a north arrow (pointing directly "up") positioned based on current plot extents.

Usage

addnortharrow(
  pos = "topright",
  padin = c(0.15, 0.15),
  scale = 1,
  lwd = 1,
  border = "black",
  cols = c("white", "black"),
  text.col = "black"
)

Arguments

pos

Where to align the north arrow. One of "bottomleft", "bottomright", "topleft", or "topright".

padin

A vector of length 2 determining the distance in inches between the scalebar and the edge of the plottable area.

scale

Scale the default north arrow to make it bigger or smaller

lwd

The line width outlining the north arrow

border

The line color outlining the north arrow

cols

A vector of length 2 determining the two colors to be drawn for the north arrow

text.col

Color of the "N"

Examples


library(maptools)
data(wrld_simpl)
plot(wrld_simpl)
addnortharrow()

plot(1:5, 1:5, asp=1)
addnortharrow()


prettymapr documentation built on June 9, 2022, 5:09 p.m.