shiftLongitude: Shift Longitude to Range -180 to 180

View source: R/map.R

shiftLongitudeR Documentation

Shift Longitude to Range -180 to 180

Description

This is a utility function used by mapGrid(). It works simply by subtracting 180 from each longitude, if any longitude in the vector exceeds 180.

Usage

shiftLongitude(longitudes)

Arguments

longitudes

numerical vector of longitudes.

Value

vector of longitudes, shifted to the desired range.

Author(s)

Dan Kelley

See Also

matrixShiftLongitude() and standardizeLongitude().

Other functions related to maps: formatPosition(), lonlat2map(), lonlat2utm(), map2lonlat(), mapArrows(), mapAxis(), mapContour(), mapCoordinateSystem(), mapDirectionField(), mapGrid(), mapImage(), mapLines(), mapLocator(), mapLongitudeLatitudeXY(), mapPlot(), mapPoints(), mapPolygon(), mapScalebar(), mapText(), mapTissot(), oceCRS(), oceProject(), usrLonLat(), utm2lonlat()


oce documentation built on Sept. 11, 2024, 7:09 p.m.