Last chance! 50% off unlimited learning
Sale ends in
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"
)
The position of the center of the compass rose in user units.
The position of the center of the compass rose in user units.
Rotation for the compass rose in degrees. See Details.
The character expansion to use in the display.
The color of text
The color of lighter lines
The color of darker lines
none
newcompassRose Display a compass rose
# NOT RUN {
library(HelpersMG)
require("maps")
map("world", "China")
newcompassRose(x=110, y=35, col.arrows.light="grey")
# }
Run the code above in your browser using DataLab