rose: Draw a Compass

View source: R/utils.R

roseR Documentation

Draw a Compass

Description

Draw a compass on a map or a plot.

Usage

rose(x, y, size = 1, width = size/4, cols = c("grey10", "white"),
     labels = c("N", "S", "E", "W"), offset = 0, ...)

Arguments

x, y

coordinates of the center of the compass given as two vectors of length one (in user coordinates).

size

the length of the needles (in the same units than the user coordinates).

width

the width of the needles at the bottom; by default, one fourth of the previous.

cols

the colours for each side of the needles.

labels

the text printed at the tips of the needles.

offset

the space between the labels and the tips of the needles.

...

further arguments passed to text to format the labels.

Details

To not print the directions, set labels = rep("", 4).

Author(s)

Emmanuel Paradis


emmanuelparadis/sentinel documentation built on May 2, 2024, 4:52 a.m.