newcompassRose | R Documentation |
Displays a basic compass rose, usually to orient a map.
newcompassRose displays a conventional compass rose at the position requested.
The size of the compass rose is determined by the character expansion,
as the central "rose" is calculated relative to the character size.
Rotation is in degrees counterclockwise.
newcompassRose(
x,
y,
rot = 0,
cex = 1,
col = "black",
col.arrows.light = "white",
col.arrows.dark = "black"
)
x |
The position of the center of the compass rose in user units. |
y |
The position of the center of the compass rose in user units. |
rot |
Rotation for the compass rose in degrees. See Details. |
cex |
The character expansion to use in the display. |
col |
The color of text |
col.arrows.light |
The color of lighter lines |
col.arrows.dark |
The color of darker lines |
newcompassRose Display a compass rose
none
modified from Jim Lemon; See sp::compassRose()
## Not run:
library(HelpersMG)
require("maps")
map("world", "China")
newcompassRose(x=110, y=35, col.arrows.light="grey")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.