Prepare Equal-Area or Equidistant Projection

LAEA_projection(occurrences = NULL, spatial_object = NULL)

AED_projection(occurrences = NULL, spatial_object = NULL)

Arguments

occurrences

matrix or data.frame containing coordinates to serve as a reference for the center of the projection. Columns must be: "longitude" and "latitude", in that order.

spatial_object

Spatial* objects, Points or Polygons, to be used to calculate a reference for the center of the projection. Projection must be WGS84 (EPSG:4326).

Value

An object of class CRS.

Details

If arguments are not defined projection is centered in 0, 0 for longitude and latitude.

Examples

LAEA_projection()
#> CRS arguments: #> +proj=laea +lat_0=0 +lon_0=0 +x_0=0 +y_0=0 +datum=WGS84 +units=m #> +no_defs
data("occ_p", package = "rangemap") occ <- unique(occ_p)[, 2:3] AED_projection(occ)
#> CRS arguments: #> +proj=aeqd +lat_0=21.5897905564391 +lon_0=-79.7123540521493 +x_0=0 #> +y_0=0 +datum=WGS84 +units=m +no_defs