Skip to contents

Project spatial points from geographic coordinates

Usage

wgs84_2aed_laea(data, longitude, latitude, which = "ED")

Arguments

data

matrix or data.frame that contains at least two columns, one with longitude information and the other with latitude information.

longitude

(character) the name of the column that contains the longitude information.

latitude

(character) the name of the column that contains the latitude information.

which

(character) type of projection. There are two options available: "ED", for Azimuthal Equidistant and "EA", for Lambert Azimuthal Equal-Area. Default = "ED".

Value

SpatVector projected to an option in which.

Examples

data("sp_occurrences", package = "biosurvey")

sp_occ <- wgs84_2aed_laea(sp_occurrences, longitude = "longitude",
                          latitude = "latitude", which = "EA")