Skip to contents

Map component that adds a compass

Usage

tm_compass(
  north,
  type,
  text.size,
  size,
  show.labels,
  cardinal.directions,
  text.color,
  color.dark,
  color.light,
  lwd,
  position,
  bg.color,
  bg.alpha,
  stack,
  just,
  frame,
  frame.lwd,
  frame.r,
  margins,
  z
)

Arguments

north

north

type

Compass type

text.size

text.size

size

size

show.labels

show.labels

cardinal.directions

cardinal.directions

text.color

text.color

color.dark

color.dark

color.light

color.light

lwd

lwd

position

Vector of two values, specifying the x and y coordinates. The first is either "left" or "right", the second either "top" or "bottom".

bg.color

Background color

bg.alpha

Background transparency

stack

stack

just

just

frame

frame

frame.lwd

frame line width

frame.r

Radius of the rounded frame corners. 0 means no rounding.

margins

margins

z

z