axes function

Plot axes

Plot axes

Show direction axes in a map

axes( x, y, angle, radius = 0.5, arrow.code = 1, arrow.length = 0, add = FALSE, ... )

Arguments

  • x, y: coordinates of points
  • angle: Azimuth in degrees
  • radius: length of axis
  • arrow.code: integer. Kind of arrow head. The default is 1, i.e. no arrow head. See graphics::arrows() for details
  • arrow.length: numeric Length of the edges of the arrow head (in inches). (Ignored if arrow.code = 1)
  • add: logical. add to existing plot?
  • ...: optional arguments passed to graphics::arrows()

Returns

No return value, called for side effects

Examples

data("san_andreas") axes(san_andreas$lon, san_andreas$lat, san_andreas$azi, add = FALSE)
  • Maintainer: Tobias Stephan
  • License: GPL (>= 3)
  • Last published: 2025-03-01