RichnessGrid: Species Richness and Abundance Grids from Point Records

View source: R/RichnessGrid.R

RichnessGridR Documentation

Species Richness and Abundance Grids from Point Records

Description

A species richness or record abundance grid.

Usage

RichnessGrid(x, ras, reso = 1, type = "spnum")

Arguments

x

an object of the class spgeoOUT or a data.frame. If x is a data.frame, it must comprise three columns,: ‘species’, ‘longitude’ and ‘latitude’.

ras

an object of the class raster defining the extent and resolution for the richness grid. If missing, estimated from the data.

reso

numeric. resolution of the raster in decimal degree, only specify if ras is missing.

type

character string indicating the type of data displayed: “spnum” = number of species per grid cell, “abu” = the number of occurrence points per grid cell.

Value

a raster object.

Note

See https://github.com/azizka/speciesgeocodeR/wiki for more details and tutorials.

See Also

MapRichness, RangeRichness.

Examples

# for x = data.frame
data(lemurs)
dat <- RichnessGrid(lemurs, reso = 1, type = "spnum")


azizka/speciesgeocodeR documentation built on Sept. 5, 2023, 3:45 a.m.