north_arrow: Helper to add north arrow to map plots

Description Usage Arguments Value Examples

View source: R/plotting_helpers.R

Description

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

Usage

1
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

1
2
3
4
5
6
# simple plot
plot(1:10, 1:10, col = "transparent")

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

rangemap documentation built on Sept. 5, 2021, 5:17 p.m.