Description Usage Arguments Value See Also Examples
Create a species richness or abundance grid, from a spgeoOUT object or a data.frame with species names and occurrence coordinates.
1 2 | RichnessGrid(x, limits = c(-180, 180, -90, 90), reso,
type = c("spnum", "abu"))
|
x |
an object of the class |
limits |
numerical. A vector of the form (xmin, xmax, ymin, ymax) givin the raster limits in decimal degrees. |
reso |
numeric. resolution of the grid in minutes. |
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. |
a raster
object.
MapRichness
, MapGrid
, RangeRichness
.
1 2 3 4 5 6 7 8 9 10 11 12 | # for x = data.frame
data(lemurs)
e <- c(-125, -105, 30, 50)
dat <- RichnessGrid(lemurs, e, reso = 60, type = "spnum")
# for x = character string
e <- c(-125, -105, 30, 50)
## Not run:
dat <- RichnessGrid("Indri indri", e, reso = 60, type = "spnum")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.