richness: Produced a species richness map

Description Usage Arguments Value Author(s) See Also Examples

View source: R/richness.R

Description

Produce a species richness map from point records, without the use of a raster.

Usage

1
richness(dat, res = 10, option = "richness", buf = 5, ext = "")

Arguments

dat

A dataframe containing the required biogeo fields (see checkdatastr)

res

Spatial resolution for the richness map specified in minutes

option

Species richness or number of records per grid cell

buf

A buffer (in minutes) around the outer points to define the extent

ext

The extent for the map. This can be ext="p" to use the point data to calculate the extent. It could be an Exent object from the Raster package or a vector containing the following: minx, maxx, miny, maxy.

Value

A raster containing either species richness per grid cell or number of records per grid cell.

Author(s)

Mark Robertson

See Also

quickrich, richnessmap

Examples

1
2
ex1 <- c(15,35,-36,-23) # specify the extent
rich<-richness(dat,res=20,option="richness",buf=5,ext=ex1)

Example output

NOTE: rgdal::checkCRSArgs: no proj_defs.dat in PROJ.4 shared files
NOTE: rgdal::checkCRSArgs: no proj_defs.dat in PROJ.4 shared files
NOTE: rgdal::checkCRSArgs: no proj_defs.dat in PROJ.4 shared files
NOTE: rgdal::checkCRSArgs: no proj_defs.dat in PROJ.4 shared files

biogeo documentation built on May 1, 2019, 8:05 p.m.