north_arrow: Helper to add north arrow to map plots

View source: R/plotting_helpers.R

north_arrowR Documentation

Helper to add north arrow to map plots

Description

north_arrow plots a North arrow in user defined places in a map.

Usage

north_arrow(position = "topright", xlim = NULL, ylim = NULL)

Arguments

position

(character or numeric) position of the North arrow. If character, options are: "topright", "topleft", "bottomleft", or "bottomright". Default = "topright".

xlim

(numeric) vector of two numbers indicating the x limits of the plotting area. Default = NULL.

ylim

(numeric) vector of two numbers indicating the y limits of the plotting area. Default = NULL.

Value

Plot of a simple North arrow located in the position of the plot specified.

Examples

# simple plot
plot(1:10, 1:10, col = "transparent")

# north arrows
north_arrow(position = "topright")
north_arrow(position = "bottomright")

manubio13/rangemap documentation built on May 9, 2022, 6:27 a.m.