View source: R/rasterize_range.R
rasterize_range | R Documentation |
Rasterize a species' range, either by burning points directly into raster, or by calculating an alpha hull around points and burning the hull into raster.
rasterize_range( xy, method, alpha, point_buffer = 0, template, outfile, xy_crs, plot = TRUE )
xy |
Coordinates to define host/species' range. This must be one of: a
matrix with two columns giving longitude and latitude (in that order); a
file path to a csv file that contains columns "Longitude" and "Latitude";
a |
method |
Either |
alpha |
Alpha parameter for alpha hull calculation. Ignored if
|
point_buffer |
When |
template |
|
outfile |
Optional file path to write out resulting host raster. |
xy_crs |
Coordinate reference system of |
plot |
Logical. Plot the resulting raster? Default = |
A RasterLayer
with the resulting range burnt into it.
Additionally, if outfile
is not missing, the raster is written to
that file.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.