An internal function to make basemap code more readable

auto_limits(type, limits, data, limits.lon = NULL, limits.lat = NULL)

Arguments

type

see the type argument for basemap

limits

Longitude and latitude columns in data. The elements 2 and 3 in the limits argument for basemap

data

Dataframe containing data for which the limits should be calculated. The element 1 in the limits limits argument for basemap

limits.lon, limits.lat

Numeric. The level of rounding for longitude and latitude, respectively. If NULL, sensible default values are used.

Details

This is an internal function, which is automatically run by the basemap function.

See also