Round a geographical positions in degrees, minutes, and seconds
Depending on the range of values in x
, rounding is done to degrees,
half-degrees, minutes, etc.
Usage
prettyPosition(x, debug = getOption("oceDebug"))
Value
A vector of numbers that will yield good axis labels if
formatPosition()
is used.
Examples
library(oce)
formatPosition(prettyPosition(10 + 1:10 / 60 + 2.8 / 3600))
#> expression(c(10, 10, 10, 10, 10, 10, 10), c(0, 2, 4, 6, 8, 10,
#> 12), c("N", NA, NA, NA, NA, NA, NA), NULL, NULL, NULL, NULL)