crs_eqc {ggautomap}R Documentation

Coordinate reference system for spatial computations

Description

crs_eqc() gives a CRS that can be used for e.g. computing centroids or distances. It is an equidistant cylindrical system that by does not distort latitudes near latitude. The CRS is in units of kilometres by default.

Usage

crs_eqc(latitude = 0, units = "km")

Arguments

latitude

The latitude of true scale (the proj parameter lat_ts). This is the latitude where the scale is not distorted by the projection.

units

Base length unit (e.g. "km" or "mi"). See ggmapinset::configure_inset() for supported values.

Value

CRS object from sf.

Examples

# Sydney, Australia has a latitude of 33.87 S so this CRS will be suitable
# for computations close to there:
crs_eqc(latitude = -33.87)

[Package ggautomap version 0.3.2 Index]