powered by
Plot a north arrow (pointing directly "up") positioned based on current plot extents.
addnortharrow( pos = "topright", padin = c(0.15, 0.15), scale = 1, lwd = 1, border = "black", cols = c("white", "black"), text.col = "black" )
Where to align the north arrow. One of "bottomleft", "bottomright", "topleft", or "topright".
A vector of length 2 determining the distance in inches between the scalebar and the edge of the plottable area.
Scale the default north arrow to make it bigger or smaller
The line width outlining the north arrow
The line color outlining the north arrow
A vector of length 2 determining the two colors to be drawn for the north arrow
Color of the "N"
plot(1:5, 1:5, asp=1) addnortharrow()
Run the code above in your browser using DataLab