newcompassRose: Display a compass rose

newcompassRoseR Documentation

Display a compass rose

Description

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.

Usage

newcompassRose(
  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

Details

newcompassRose Display a compass rose

Value

none

Author(s)

modified from Jim Lemon; See compassRose sp

Examples

## Not run: 
library(HelpersMG)
require("maps")
map("world", "China")
newcompassRose(x=110, y=35, col.arrows.light="grey")

## End(Not run)

HelpersMG documentation built on Oct. 5, 2023, 5:08 p.m.