RangeRichness: Species Richness Raster from Range Polygons

Description Usage Arguments Value Examples

View source: R/RangeRichness.R

Description

Calculate species richness for the specified grid based on an list of range polygons, as derived from CalcRange.

Usage

1
RangeRichness(ra, limits = c(-180, 180, -90, 90), reso = 60)

Arguments

ra

A list of SpatialPolygons with species ranges.

limits

numeric. A vector with the limits of the grid in decimal degrees of the format c(xmin, xmax, ymin, ymax). Default is worldwide c(-180, 180, -90, 90).

reso

numeric. resolution of the grid in minutes.

Value

a raster object.

Examples

1
2
3
4
data(lemurs)
rang <- CalcRange(lemurs, value = "shape")
sprich <- RangeRichness(rang)
MapGrid(sprich)

Example output

Loading required package: maps
Warning messages:
1: In CalcRange(lemurs, value = "shape") :
  177 points were excluded due to duplicated coordinate
2: In CalcRange(lemurs, value = "shape") :
  the following species have less than 3 occurrence, values set to NA:
 Daubentonia madagascariensis
 Eulemur collaris
 Eulemur rufifrons
 Eulemur rufus
 Eulemur sanfordi
 Lepilemur septentrionalis
 Microcebus griseorufus
 Microcebus lehilahytsara
 Microcebus ravelobensis
 Propithecus candidus
 Propithecus coronatus
 Propithecus deckenii
 Propithecus tattersalli

speciesgeocodeR documentation built on May 30, 2017, 12:34 a.m.