View source: R/0.1.accessory.functions.R
compass_rose | R Documentation |
This function will draw a compass rose in the plotted map
compass_rose(
x,
y,
size,
bearing = 0,
d = 0.8,
draw.circle = F,
fill = c("white", "black"),
cex = 1,
lwd = 1,
...
)
x |
Position at x axis |
y |
Position at y axis |
size |
Compass size |
bearing |
bearing direction in degrees |
d |
letter distance from circle |
draw.circle |
Logical. Draw circle around compass? |
fill |
The color for filling polygons of both sides of the north arrow or compass rose. The default, c("white", border), fills one side with white and the other side with the color of the border. Two colors should be provided. |
cex |
A numerical value giving the amount by which plotting text
and symbols should be magnified relative to the default.
See |
lwd |
A numerical value giving the amount by which plotting text
and symbols should be magnified relative to the default.
See |
... |
graphical parameters such as |
Tanimura et al. 2007. Auxiliary Cartographic Functions in R: North Arrow, Scale Bar, and Label with a Leader Arrow. Journal of Statistical Software. Volume 19, Code Snippet 1. https://www.jstatsoft.org/article/view/v019c01/v19c01.pdf
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.