Learn R Programming

mapsf (version 0.11.0)

mf_arrow: Plot a north arrow

Description

Plot a north arrow.

Usage

mf_arrow(pos = "topleft", col, adjust)

Value

No return value, a north arrow is displayed.

Arguments

pos

position. It can be one of 'topleft', 'top','topright', 'right', 'bottomright', 'bottom','bottomleft', 'left', 'interactive' or a vector of two coordinates in map units (c(x, y))

col

arrow color

adjust

object of class sf or sfc used to adjust the arrow to the real north

Examples

Run this code
mtq <- mf_get_mtq()
mf_map(mtq)
mf_arrow(pos = "topright")

Run the code above in your browser using DataLab