addnortharrow {prettymapr} | R 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
plot(1:5, 1:5, asp=1)
addnortharrow()
[Package prettymapr version 0.2.5 Index]