Learn R Programming

biogeo (version 1.0)

richnessmap: Map of the number of species or number of records per grid cell

Description

Creates a raster map of the number of species or number of records per grid cell

Usage

richnessmap(dat, rst, option = "richness")

Arguments

dat
a dataframe containing fields with the following names: ID, x, y, Species, x_original, y_original, Correction, Modified, Exclude
rst
a raster object
option
"richness" gives species richness and "records" gives total number of records per grid cell

Value

Details

grid cells are based on rst

See Also

pointsworld

Examples

Run this code
## Not run: 
# dem<-raster(dem,xmn=-180, xmx=180, ymn=-60, ymx=90)
# rich<-richnessmap(dat,dem,option="richness")
# nrec<-richnessmap(dat,dem,option="records")
# ## End(Not run)

Run the code above in your browser using DataLab