dot-interpCoordFromQuantile: Latitude of quantile(s) of the geographic abundance...

.interpCoordFromQuantileR Documentation

Latitude of quantile(s) of the geographic abundance distribution

Description

This function returns the latitude or longitude of quantile(s) of the geographic abundance distribution. The input is derived from a rasterized map of the species abundance distribution. If a quantile would occur somewhere between two cells, the latitude/longitude is linearly interpolated between the cells bracketing its value.

Usage

.interpCoordFromQuantile(
  latOrLong,
  quants,
  x,
  coordVect,
  weightedElev = NULL,
  warn = TRUE
)

Arguments

latOrLong

Either 'latitude' or 'longitude'

quants

Quantile value(s) (i.e., in the range [0, 1])

x

Matrix of abundances.

coordVect

Vector of latitudes, one per row in x (from south to north!!!) **OR** vector or longitudes, one per column in x (from west to east!!!).

weightedElev

Raster of elevations weighted by x1 or x2 or NULL.

warn

Logical. Show warnings.


adamlilith/enmSdm documentation built on Jan. 6, 2023, 11 a.m.