Learn R Programming

ggOceanMaps (version 1.1)

define_shapefiles: Define a shapefile to use in plotting from the limits argument

Description

An internal function to make basemap code more readable

Usage

define_shapefiles(limits)

Arguments

limits

A numeric vector of length 4: The first element defines the minimum longitude, the second element the maximum longitude, the third element the minimum latitude and the fourth element the maximum latitude of the bounding box.

Value

A list containing the correct shapefile and a logical statement whether the limits were supplied as decimal degrees.

Details

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

See Also

basemap