View source: R/rasterizeRange.R
rasterizeRange | R Documentation |
Rasterize shapefile of multiple polygons to individual global rasters with a specific resolution
rasterizeRange( dsn = paste0(getwd(), "/IUCN/AMPHIBIANS.shp"), id = "binomial", resolution = 0.5, save = TRUE, touches = TRUE, extent = c(-180, 180, -90, 90), split = NA, name_split = c(1, 2), seasonal = NA, origin = NA, presence = NA, getCover = F, df = F, crs = "+proj=longlat +datum=WGS84 +ellps=WGS84 +towgs84=0,0,0", path = getwd() )
dsn |
Path to one shapefile with multiple polygons or a list of files |
id |
|
resolution |
|
save |
|
touches |
|
extent |
|
split |
|
name_split |
|
seasonal |
|
origin |
|
presence |
|
getCover |
|
df |
|
crs |
|
path |
|
list of raster layers for each id
with the given area shapefile
## Not run: r_amphibians <- rasterizeRange(dsn=paste0(getwd(), "/IUCN/AMPHIBIANS.shp"), id="binomial", resolution=0.5, seasonal=c(1,2), origin=1, presence=c(1,2), path=getwd()) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.