Learn R Programming

phenology (version 4.0.4)

compassRose2: Display a compass rose

Description

Displays a basic compass rose, usually to orient a map. compassRose 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.

Usage

compassRose2(x, y, rot = 0, cex = 1, col = "black",
  col.arrows.light = "white", col.arrows.dark = "black")

Arguments

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

Value

  • none

Details

compassRose2 Display a compass rose

Examples

Run this code
library("maps")
library("phenology")
map("world", "China")
compassRose2(x=110, y=35, col.arrows.light="grey")

Run the code above in your browser using DataLab