Learn R Programming

red (version 1.6.1)

map.points: Map recorded distribution of species.

Description

Mapping of all cells where the species is known to occur.

Usage

map.points(longlat, layers, eval = TRUE)

Value

One raster object and, if EVAL = TRUE, a matrix with EOO and AOO.

Arguments

longlat

Matrix of longitude and latitude or eastness and northness (two columns in this order) of each occurrence record.

layers

Raster* object as defined by package raster. Any raster with the relevant extent and cell size can be used.

eval

If TRUE, build a matrix with EOO and AOO calculated from occurrence records only.

Details

To be used if either information on the species is very scarce (and it is not possible to model the species distribution) or, on the contrary, complete (and there is no need to model the distribution).

Examples

Run this code
records = red.examples("red.records")
layers = red.examples("red.layers")
terra::plot(map.points(records, layers, eval = FALSE))
points(records)

Run the code above in your browser using DataLab