Learn R Programming

ggOceanMaps (version 1.1)

guess_coordinate_columns: Guess longitude and latitude columns in a data frame

Description

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.

See Also

auto_limits, transform_coord, basemap