addnortharrow | R Documentation |
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"
)
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" |
plot(1:5, 1:5, asp=1)
addnortharrow()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.