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.
.interpCoordFromQuantile(
latOrLong,
quants,
x,
coordVect,
weightedElev = NULL,
warn = TRUE
)
Either 'latitude' or 'longitude'
Quantile value(s) (i.e., in the range [0, 1])
Matrix of abundances.
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!!!).
Raster of elevations weighted by x1 or x2 or NULL
.
Logical. Show warnings.