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.

shiftLongitude(longitudes)

Arguments

longitudes

numerical vector of longitudes.

Value

vector of longitudes, shifted to the desired range.

See also