Description Usage Arguments Details Value Examples
View source: R/rangemap_buff.R
rangemap_buffer generates a distributional range for a given species by buffering provided occurrences using a defined distance. Optionally, representations of the species extent of occurrence (using convex hulls) and the area of occupancy according to the IUCN criteria can also be generated. Shapefiles can be saved in the working directory if it is needed.
1 2 3 4 |
occurrences |
a data.frame containing geographic coordinates of species occurrences, columns must be: Species, Longitude, and Latitude. Geographic coordinates must be in decimal degrees (WGS84). |
buffer_distance |
(numeric) distance, in meters, to be used for creating the buffer areas around occurrences, default = 100000. |
polygons |
(optional) a SpatialPolygons* object to clip buffer areas and
adjust the species range and other polygons to these limits. Projection must
be WGS84 (EPSG:4326). If |
extent_of_occurrence |
(logical) whether to obtain the extent of occurrence
of the species based on a simple convex hull polygon; default = |
area_of_occupancy |
(logical) whether to obtain the area of occupancy
of the species based on a simple grid of 4 km^2 resolution;
default = |
final_projection |
(character) string of projection arguments for
resulting Spatial objects. Arguments must be as in the PROJ.4 documentation.
See |
save_shp |
(logical) if |
name |
(character) valid if |
overwrite |
(logical) whether or not to overwrite previous results with
the same name. Default = |
verbose |
(logical) whether or not to print messages about the process. Default = TRUE. |
All resulting Spatial objects in the results will be projected to the
final_projection
. Areas are calculated in square kilometers using the
Lambert Azimuthal Equal Area projection, centered on the centroid of occurrence
points given as inputs.
A sp_range object (S4) containing: (1) a data.frame with information about the species range, and Spatial objects of (2) unique occurrences, (3) species range, (4) extent of occurrence, and (5) area of occupancy.
If extent_of_occurrence
and/or area_of_occupancy
= FALSE
,
the corresponding spatial objects in the resulting sp_range object will be
empty, an areas will have a value of 0.
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.