compass_rose: Draw north arrow in plotted map

View source: R/0.1.accessory.functions.R

compass_roseR Documentation

Draw north arrow in plotted map

Description

This function will draw a compass rose in the plotted map

Usage

compass_rose(
  x,
  y,
  size,
  bearing = 0,
  d = 0.8,
  draw.circle = F,
  fill = c("white", "black"),
  cex = 1,
  lwd = 1,
  ...
)

Arguments

x

Position at x axis

y

Position at y axis

size

Compass size

bearing

bearing direction in degrees

d

letter distance from circle

draw.circle

Logical. Draw circle around compass?

fill

The color for filling polygons of both sides of the north arrow or compass rose. The default, c("white", border), fills one side with white and the other side with the color of the border. Two colors should be provided.

cex

A numerical value giving the amount by which plotting text and symbols should be magnified relative to the default. See par for details

lwd

A numerical value giving the amount by which plotting text and symbols should be magnified relative to the default. See par for details

...

graphical parameters such as xpd, lend, ljoin and lmitre can be given as arguments.

References

Tanimura et al. 2007. Auxiliary Cartographic Functions in R: North Arrow, Scale Bar, and Label with a Leader Arrow. Journal of Statistical Software. Volume 19, Code Snippet 1. https://www.jstatsoft.org/article/view/v019c01/v19c01.pdf


HemingNM/ENMwizard documentation built on Jan. 4, 2024, 3:24 p.m.