rasterize_occurrences: Rasterize species occurrences

Description Usage Arguments Author(s) Examples

View source: R/occurrences.R

Description

Takes output from get_occurrences_ala or get_occurrences_gbif, and rasterizes the occurrences into 10min (ca. 18km2). At the moment rasterizing uses only this fixed resolution, which is the coarsest resolution for WorldClim data (see http://www.worldclim.org/version1). The result is a dataframe with latitude and longitude of the midpoints of the raster cells where the species occurs at least once.

Usage

1
rasterize_occurrences(spdat, return_raster = FALSE)

Arguments

spdat

A dataframe returned by get_occurrences_ala or get_occurrences_gbif, or simply a dataframe with 'species', 'longitude', and 'latitude' (species is required).

return_raster

Logical (default FALSE). If TRUE, return the raster object, instead of the raster converted to a dataframe with midpoint coordinates.

Author(s)

Remko Duursma

Examples

1
2
3
4
5
## Not run: 
o <- get_occurrences_ala("Eucalyptus botryoides")
r <- rasterize_occurrences(o)

## End(Not run)

RemkoDuursma/speciesmap documentation built on Feb. 24, 2018, 3:39 p.m.