Project spatial points from geographic coordinates
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".
Examples
data("sp_occurrences", package = "biosurvey")
sp_occ <- wgs84_2aed_laea(sp_occurrences, longitude = "longitude",
latitude = "latitude", which = "EA")