getCoordsAxes: Easy way to get the labels of coordinates from a vector.

View source: R/getCoordsAxes.R

getCoordsAxesR Documentation

Easy way to get the labels of coordinates from a vector.

Description

Easy way to get the labels of coordinates from a vector.

Usage

getCoordsAxes(coord, what, dms = "d")

Arguments

coord

Numeric vector of coordinates.

what

Indicate coord belongs to longitude (what = "lon") or latitude (what = "lat") values.

dms

A character strings indicating what to show (d: degrees, m: minutes, s: seconds).

Value

A character vector, ready to put as coords labels.

Examples

myLongitudes <- seq(-20, -15, 0.5)
getCoordsAxes(coord = myLongitudes, what = "lat")

LuisLauM/ruisu documentation built on March 26, 2024, 8:23 a.m.