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

View source: R/define_shapefiles.R

define_shapefilesR Documentation

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, force_dd = FALSE)

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.

force_dd

Logical indicating whether the shapefile should be forced to DecimalDegree. Required for transforming dd_* shapefile objects to other projections.

Details

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

Value

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

Author(s)

Mikko Vihtakari

See Also

basemap


ggOceanMaps documentation built on May 29, 2024, 5:36 a.m.