Skip to contents

An internal function to make basemap code more readable

Usage

guess_coordinate_columns(data, lon = NULL, lat = NULL)

Arguments

data

Dataframe containing data for which the limits should be calculated.

lon, lat

Character defining the name of the longitude and latitude columns in data. Use NULL to guess the longitude and/or latitude columns in x.

Value

A named vector of colummn names.

Details

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

Author

Mikko Vihtakari