Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

elevation

Elevation limits.


Description

Calculates the elevation (or depth) limits (range) of a species based on either known records or predicted distribution.

Usage

elevation(spData, dem = NULL)

Arguments

spData

One of three options: 1) matrix of longitude and latitude (two columns) of each occurrence record; 2) matrix of easting and northing (two columns, e.g. UTM) of each occurrence record in meters; 3) RasterLayer object of predicted distribution (0/1 values).

dem

RasterLayer object. Should be a digital elevation model (DEM) of the relevant area. If not given the function will try to read it from base data, only works with longlat data.

Details

Maximum and minimum elevation are calculated based on the DEM.

Value

A vector with two values (min and max) in meters above (or below) sea level.

Examples

data(red.records)
data(red.range)
data(red.layers)
dem = red.layers[[3]]
elevation(red.records, dem)
elevation(red.range, dem)

red

IUCN Redlisting Tools

v1.5.0
GPL-3
Authors
Pedro Cardoso
Initial release
2020-05-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.